Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 gis.stackexchange.com/questions/53678/…. 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.