Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Now I have a point and polygon shapefile

and I want to calculate the points' average value within each polygons

How to do it with python?

I tried to find out but google gives me a lot of raster within polygon...

I just want to do it with shapefile

share|improve this question
Very closely related is…. Perhaps this answers your question? – whuber Apr 8 '13 at 17:44
Thanks for your comment it's very like my problem but it's not really I want ,I want to make it through Python but it's use a plugin within Qgis – blueman010112 Apr 9 '13 at 2:40
Well, then, please tell us how it's different! – whuber Apr 9 '13 at 2:41
and I don't have point per polygon in my shapefile I need to calculate it in the begging – blueman010112 Apr 9 '13 at 2:47
the most different between my question and that post is I need a python way to do it but he just use a plugin to do it – blueman010112 Apr 9 '13 at 12:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.