I am trying to calculate the population-weighted centroids of Utah's census tracts using the census blocks population in ArcGIS Pro.
I have joined the census blocks population of 2010 to the census block shapefile of 2010 and have projected the shapefile to NAD83 (for Utah Central FIPS 4302 US Feet).
After using the Mean Center tool and assigning the census block population to Weight Field and tract codes to Case Field, I get the results.
However, some of the centers are not within the tract's boundaries. For instance, the population-weighted centroid of Tract 110701 is plotted on the 974300 census tract.
Any idea what the problem is and how to fix it? I appreciate your feedback.
Solved! Go to Solution.
Unfortunately the Mean Centre algorithm does not respect the polygon boundaries, so for C or L shaped polygons, polygons with holes or polygons with multiple parts, the point can often fall outside the polygon. This is not an error, but is a valid result.
You will have to decide how to handle these situations yourself with some extra processing afterwards. Some ideas:
No easy answer unfortunately. Hope that helped.
Did you try Feature To Point (Data Management)—ArcGIS Pro | Documentation
There is an Inside option to make sure that the "center" is contained within the polygon
I am afraid that doesn't work.
Unfortunately the Mean Centre algorithm does not respect the polygon boundaries, so for C or L shaped polygons, polygons with holes or polygons with multiple parts, the point can often fall outside the polygon. This is not an error, but is a valid result.
You will have to decide how to handle these situations yourself with some extra processing afterwards. Some ideas:
No easy answer unfortunately. Hope that helped.
Thank you, Tim. That is interesting to know about the Mean Center tool.