ArcGIS Toolbox – Calculate Point Statistics within Polygon with ArcPy

Share Button

Updated – 2/27/2015
Fixed compatibility with Python 3 for ArcGIS Pro

(If you’re using Firefox, then right click and Save Link As)
Download the Calculate Point Statistics Toolbox – works with ArcGIS 10.1+
View the Source Code

(any donations go towards hosting costs)

The Calculate Point Statistics tool takes an input Polygon and Point feature class and uses a selected field to find the minimum, maximum, and average of the points and adds the results to the polygon feature.

Be sure to view the Tool Help within the tool dialog box for detailed instructions. Also, check the Geoprocessing Results for any error messages.

Here’s a screenshot of the parameters:
Calculate Point Statistics parameters

I hope someone finds this tool useful. If you’d like this tool to calculate additional statistics for the points, let me know. Please leave a comment if you have any questions or problems, and be sure to check out the other tools I’ve created!

13 thoughts on “ArcGIS Toolbox – Calculate Point Statistics within Polygon with ArcPy

  1. Hi Ian,

    Thanks for providing the answer to my question on gis.stackexchange I really appreciate it. I wish I was more familiar with ArcPy so I could easily modify your code to generate min. values only and to extract as a point file. Would you see any use for this in your work? Let me know if you don’t mind modifying it, I’ll really appreciate it and I’d owe you one.

    Thanks and keep up the good work

    1. Yeah, I can definitely do that. The only part I’m unsure of is where the point that is kept for each polygon should be placed? Should I keep its current location or place it at the centroid of the polygon? If I place it at the centroid of the polygon, it may save you from needing to go back and snap it the line. What do you think?

      1. Hello Ian

        I m so appriciated for your scripts

        Now I want to find minimum value for ueach polygon but write in to point file and keep thier location as it is is it possible? Please help me, thanks

  2. Hi, Ian,
    thanks a lot for your awesome tool.

    Please let me know how I can keep in the output table a current location of a point (or initial point ID), for example, with MAX value?
    Many thanks again.

Leave a Reply