[GRASS-user] Zonal Raster Statistics with overlapping polygons

Moritz Lennert mlennert at club.worldonline.be
Mon Feb 27 04:44:58 PST 2017


Le Mon, 27 Feb 2017 17:45:37 +0530,
Sitansu Pattnaik <sitansu at gmail.com> a écrit :

> I had understood that v.rast.stats converted the vector file into
> raster and hence the order in which the vectors were drawn, only one
> value was generated for the overlapping areas in the raster. This
> rasterized version was then used to compute the statistics.
> Hence, the overlapping areas matched for polygon 1 and not for
> polygon 3 as the overlap area was coded to "1" in the overlap area
> during raster conversion.


Yes, that is correct. I just posted the approximate path to a possible
solution in the trac ticket [1].

Moritz

[1] https://trac.osgeo.org/grass/ticket/3300


More information about the grass-user mailing list