[GRASS-user] Re: Limit d.raster with vector map

Daniel Lee Lee at isi-solutions.org
Thu Jun 30 10:40:24 EDT 2011


I would do the following, assuming you've got an area vector that's covering
the raster data you want to show:

1. Convert the vector to a raster with r.to.vect
2. Reclassify it so that it's got only two values: 1 and NoData.
3. Multiply the reclassified raster with the raster data that you want to
limit to the area of the vector. The old values will be preserved in the
resulting map because x * 1 = x, but everything that's not collocated with
the vector map will be removed because it's multiplied with NoData.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Limit-d-raster-with-vector-map-tp6533406p6533536.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list