Polygons to raster map
Nalneesh Gaur
ng at nile.rti-md.com
Thu Apr 20 08:00:00 EDT 1995
Marlin,
You can use r.mapcalc script
To check if the cell has a value, if it does then do nothing. If it does
not have a value then assign it the neighboring value. You may run the mapcalc
script as many times as you wish to filter out the holes.
You may want to make a back up of your map before you try this.
For example you could do something like this
GRASS-GRID:> r.mapcalc << eof
map_name=if(<map_name>, <map_name>, map_name[0,1])
map_name=if(<map_name>, <map_name>, map_name[0,-1])
map_name=if(<map_name>, <map_name>, map_name[1,0])
map_name=if(<map_name>, <map_name>, map_name[-1,0])
map_name=if(<map_name>, <map_name>, map_name[-1,-1])
map_name=if(<map_name>, <map_name>, map_name[1,1])
map_name=if(<map_name>, <map_name>, map_name[-1,1])
map_name=if(<map_name>, <map_name>, map_name[1,-1])
eof
Nalneesh Gaur
More information about the grass-user
mailing list