Summary
Some tools, such as the Choose Best Facility tool, require point feature classes as inputs. For example, when using the Choose Best Facility tool to find the best site for a park and the feature layer of available land parcels contain only polygons, the centroid of the polygons can be used as the input point feature class. ArcGIS Pro provides the capability to find the centroid of a polygon feature class within the attribute table of the polygon using the Calculate Geometry Attributes tool.
Note:
Alternatively, use the Feature to Point tool available with an ArcGIS Pro Advanced license.
Procedure
To find the centroid of polygons using the Calculate Geometry Attributes tool, follow these steps:
- Open the attribute table of the polygon feature class in the Contents pane; right-click the layer name and click Attribute Table.
- Create two new fields with the data type Double.
- Click Add Field
in the attribute table. - Name the new field Longitude and change the data type to Double.
- Click Click here to add a new field and name the field Latitude.
- Change the data type to Double and click Save on the Field ribbon tab.
- Close the Fields View tab.
- Right-click the Longitude or Latitude field header in the attribute table, and select Calculate Geometry to open the Calculate Geometry Attributes geoprocessing pane.
- Select Longitude from the drop-down list for Target Field.
- Select Centroid x-coordinate from the drop-down list for Property.
- Select Latitude from the drop-down list for Target Field.
- Select Centroid y-coordinate from the drop-down list for Property.
- Select Current Map [Map] from the drop-down list for Coordinate System.
- Click Run.
- Export the attribute table to a new table.
- On the View ribbon tab, click Export Table in the Export group to open the Copy Rows geoprocessing pane.
- Select the polygon feature class with the Longitude and Latitude fields for Input Rows.
- Specify a name and location for the new table in the Output Table field.
- Click Run.
The new table is added to the Contents pane.
- Display the centroid point feature class on the map.
- Right-click the new table in the Contents pane, and select Display XY Data to open the XY Table To Point geoprocessing pane.
- Specify a name and location for the new feature class in the Output Feature Class field.
- Select Longitude for X Field.
- Select Latitude for Y Field.
- Select Current Map [Map] from the drop-down list for Coordinate System.
- Click Run.
The centroid of the polygon feature class appears as shown in the image below.