[GRASS-user] Re: A Script that only selects raster inside a polygon

Glynn Clements glynn at gclements.plus.com
Mon Sep 27 09:00:01 EDT 2010


Pedro Roma wrote:

> Instead of using r.mask (I'm not a big fan of r.mask) can I cross my
> v.to.rast raster(composed by 1 and nulls) and my raster file?

r.mapcalc "outrast = if(isnull(maskrast),null(),inrast)"

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list