[GRASS-user] min and max raster within polygons

Moritz Lennert mlennert at club.worldonline.be
Sun Nov 20 23:53:24 PST 2016


On 21/11/16 00:54, Dave Roberts wrote:
> Thanks Anna.  Wow, only two lines of code!
>
> v.to.rast inp=new_mountains out=new_mountains attr=cat use=attr

You could probably just set use=cat here.

> r.univar map=srtm zones=new_mountains

If you want to get the info into the attribute table of new_mountains, then

v.rast.stats map=new_mountains raster=srtm

would have also done the job. It's actually "just" a wrapper around the 
two commands you used + loading the results into the attribute table .

Moritz




More information about the grass-user mailing list