[GRASS-user] percentage of class in raster within polygons
S. Koukoulas (listes)
sotkouklistes at gmail.com
Wed Feb 11 03:26:28 PST 2015
how about,
v.rast.stats with number/sum option and then field calculations?
regards,
sotiris
On 02/11/2015 01:15 PM, Margherita Di Leo wrote:
> Hi,
>
> I have to calculate the percentage of given class of a raster within the
> polygons given in a vector (a regular grid). Since I'm dealing with large
> files and operations repeated in a chain, i should be focusing on what is
> the optimal (fastest) option to do that. I could vectorize the raster and
> use v.overlay and v.to.db, or using v.rast.stats i can count out the number
> of cells (should i use number for that or sum?) and then divide per area
> of the grid. Any better idea?
>
> Thank you in advance
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
More information about the grass-user
mailing list