[GRASS-user] Zonal Raster Statistics with overlapping polygons

Gra graziaz at gmail.com
Fri Feb 24 06:25:55 PST 2017


hi
I had a similar problem
I looped over the polygons (with a script)



Grazia

2017-02-24 11:48 GMT+01:00 Leonardo <leonardo at mobygis.com>:

> Hi all,
>
> I'm struggling to do Zonal Raster Statistics using v.rast.stats in GRASS
> GIS.
> This tool works neatly and fast, but seems it doesn't deal with
> overlapping polygons.
>
> I'm using a polygon vector layer with overlapped polygons, I know, is not
> topologically correct, but those polygons does't describe physical feature
> but
> just some figurative mask for the statistics, therefore should exist
> overlapping
> and I want the statisics calculated over the whole polygons.
>
> Using v.rast.stats with this vector layer the statistics seem to be
> calculated
> only over the non overlapping part of the feature, I've also tried to
> import
> the vector layer (originally was a shapefile) without build the topology,
> but the results seem the same.
>
> I've test also the QGIS ZonalStats plugin, and it works exactly how I want,
> the statistics for each polygon are calculate for the whole polygon, is
> there a method
> to do the same in GRASS GIS?
>
> Have someone some hint, possibly smarter and faster than looping ever each
> feature
> and then join each table?
>
> Thanks in advance,
> Leonardo
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170224/a5b807a5/attachment-0001.html>


More information about the grass-user mailing list