Select to view content in your preferred language

aggregate points in polygons

1324
5
10-12-2022 07:25 AM
Labels (3)
Guy_srb
Regular Contributor

Hi 🙂

I've been trying to aggregate points from a layer that its data changes overtime, in a another layers polygons.

the final outcome supposed to be how many points there are in a polygon.

I've tried using spatial join, but the tool is creating another feature class and so it does not takes in account that the point layer is changing over time.

Is there a way to define an interval that polygon layer will count how many points there are in every polygon?

 

0 Kudos
5 Replies
Robert_LeClair
Esri Esteemed Contributor

The Summarize Incident Count (Crime Analysis and Safety) GP tool would create a new feature class with a new TOTAL_CNT field added and provide the count of points within a polygon.

0 Kudos
Guy_srb
Regular Contributor

Hi Robert, thanks for the help.

The tool you suggested will count the number of points in polygons only one time, and I need it to be every hour/dynamically, because the number of point in the layer is changing overtime.

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

You're welcome!  I understand about the need to run this tool every hour.  One suggestion is to schedule to GP tool to run every hour then.  You can learn more about how to schedule GP tools here.

0 Kudos
Guy_srb
Regular Contributor

Hi robert, the tool does work and it does give the results I wanted, but the problem now that it creates a new feature class every time I schedule it to run, is there a way just to update this created feature class(so it can be published)?

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Hi Guy - so when you say update, do you mean overright the existing feature class vs creating a new one? Or do you mean, the new incoming file only has new information to update the existing feature class?

0 Kudos