[Qgis-user] Counting the sum of points in a polygon

Andreas Neumann a.neumann at carto.net
Wed Nov 27 07:14:29 PST 2013


Hi Steve,

Oops - I was wrong. The "Zonal Statistics" plugin only works between a
vector and a raster layer and aggregates (sum/mean/max) the raster cell
values intersected with a polygon vector layer.

This is different from your needs.

For point in polygon there is a "Point in Polygon" function which at
least counts the points aggregated by polygon. Output is a shapefile.

Does that suit your needs or do you need more than just the count?
Sorry, no sum/min/max/mean - just simple counts.

If you have your data in Postgis, it would be very easy to do aggregates
based on the polygon geometry. I could provide a SQL query if you are
interested.

Andreas

Am 27.11.2013 15:57, schrieb Steven Campbell:
> Hi Andreas
> 
> Is this the same as the basic statistics tool that you can find in the Vector tools? I can see the plugin is already loaded but cannot see any Zonal Stats button/option anywhere. I'm using the latest weekly build at the minute.
> 
> Thanks
> 
> Steve
> 
> 
> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 




More information about the Qgis-user mailing list