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
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user