[GRASS-user] Zonal Raster Statistics with overlapping polygons

Leonardo leonardo at mobygis.com
Mon Feb 27 00:41:11 PST 2017


Thanks for your answer,
I had already thought of a solution of this type,
but I'm looking for a cleaner and smarter solution,
any hints?!

Leonardo

On 24/02/2017 15:25, Gra wrote:
> 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 
> <mailto: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 <mailto:grass-user at lists.osgeo.org>
>     https://lists.osgeo.org/mailman/listinfo/grass-user
>     <https://lists.osgeo.org/mailman/listinfo/grass-user>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170227/6104e556/attachment.html>


More information about the grass-user mailing list