[GRASSLIST:306] Re: distance to raster line
H Bowman
hamish_nospam at yahoo.com
Fri Jun 6 05:51:08 EDT 2003
> once again. I do have a line raster map (e.g. a raster map of roads),
> and I need to generate a raster layer, where every pixel has the same ID
> as the closest line (of the line raster). I am not sure if a combination
> of the r.cost and r.drain commands can help. At least I dont see how to
> do it.
possibly:
r.null map null=0
g.copy map,map1
then loop:
r.grow in=map1 out=map2
g.remove map1
g.rename map2,map1
?
good luck,
Hamish
More information about the grass-user
mailing list