Select to view content in your preferred language

Create mean center (point-feauture) out of multiple points within a polygon

1968
6
Jump to solution
02-09-2023 12:48 PM
LukasGentner
New Contributor

Hello, I´m using ArcGis Pro for a study project.

I have two feature classes. One polygon feature and one point feature. The points lay within the polygon features. (see attached image) 

Is it possible to create the mean center of the points who are within one polygon? (like the red dots on the image)

I know I can do every polygon by its own but i have a really big dataset, so this is not an option.

Thanks for your help:)

0 Kudos
2 Solutions

Accepted Solutions
JohannesLindner
MVP Frequent Contributor
  1. Intersect the point and polygon fcs
  2. Dissolve the resulting point fc by the polygon id field into a multipoint fc
  3. run Feature To Point on that multipoint fc to get the centroids

JohannesLindner_0-1675976850006.png

 


Have a great day!
Johannes

View solution in original post

0 Kudos
Robert_LeClair
Esri Notable Contributor

I wonder if the Mean Center (Spatial Statistics) GP tool would work as long as the points feature class had a case field (i.e. number/text) for those points that fall in one polygon.  For example, 10 points fall in polygon with a case field of 1001.  Then you would have a mean center of those points in polygon 1001, 1002, etc.

View solution in original post

0 Kudos
6 Replies
JohannesLindner
MVP Frequent Contributor
  1. Intersect the point and polygon fcs
  2. Dissolve the resulting point fc by the polygon id field into a multipoint fc
  3. run Feature To Point on that multipoint fc to get the centroids

JohannesLindner_0-1675976850006.png

 


Have a great day!
Johannes
0 Kudos
JohannesLindner
MVP Frequent Contributor

Be aware that this approach does not guarantee that the centroid is in the polygon!

JohannesLindner_0-1675977156172.png

 


Have a great day!
Johannes
0 Kudos
Robert_LeClair
Esri Notable Contributor

I wonder if the Mean Center (Spatial Statistics) GP tool would work as long as the points feature class had a case field (i.e. number/text) for those points that fall in one polygon.  For example, 10 points fall in polygon with a case field of 1001.  Then you would have a mean center of those points in polygon 1001, 1002, etc.

0 Kudos
JohannesLindner
MVP Frequent Contributor

Right, running Mean Center on the Intersection of the points and polygons (for the case field) gives the same result as Dissolving and converting to centroid.


Have a great day!
Johannes
0 Kudos
DanPatterson
MVP Esteemed Contributor

Of course one could determine the polygon centroids/label points, which may be as appropriate as the point centroids and it would ensure point-in-polygon tool.  

If distance to some measure of centrality is needed, be sure it is the centrality of the points that is critical and not their dispersion within the bounding polygon.  In which case a centroid of the convex hull of each point cluster may be more appropriate or as appropriate


... sort of retired...
0 Kudos
LukasGentner
New Contributor

Thanks a lot! It works with both solutions. I will fix the problem of points not laying whitin the polygon by splitting those polygons. Then it should work perfectly.

0 Kudos