HOW TO

Find the centroid of polygons using Calculate Geometry in ArcGIS Pro

Last Published: July 20, 2023

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 using the Calculate Geometry tool.

Polygon feature class
Note:
Alternatively, use the Feature to Point tool available with an ArcGIS Pro Advanced license.

Procedure

Find the centroid of polygons using the Calculate Geometry tool

  1. Open the attribute table of the polygon feature class in the Contents pane, right-click the layer name, and click Attribute Table.
  2. Create two new fields with the Double data type.
    1. Click Add Field Add Field in the attribute table.
    2. Name the new field Longitude, and change the data type to Double.
    3. Click Click here to add a new field and name the field Latitude.
    4. Change the data type to Double and click Save on the Fields ribbon tab.
    5. Close the Fields View tab.
Click here to add new field.
  1. Right-click the Longitude or Latitude field header in the attribute table, and select Calculate Geometry to open the Calculate Geometry geoprocessing pane.
    1. Select Longitude from the drop-down for Field.
    2. Select Centroid x-coordinate from the drop-down for Property.
    3. Select Latitude from the drop-down for Field.
    4. Select Centroid y-coordinate from the drop-down for Property.
    5. For Coordinate Format, leave the parameter as default.
    6. Select Current Map [Map] from the drop-down for Coordinate System.
    7. Click OK.
Calculate Geometry geoprocessing pane for Longitude
  1. Export the attribute table to a new table.
    1. On the Analysis ribbon tab, click Tools in the Geoprocessing group to open the Geoprocessing pane.
    2. In the Geoprocessing pane, search for and select the Copy Rows tool.
    3. Select the polygon feature class with the Longitude and Latitude fields for Input Rows.
    4. Specify a name and location for the new table in the Output Table field.
    5. Click Run.
Copy Rows geoprocessing pane

The new table is added to the Contents pane.

  1. Display the centroid point feature class on the map.
    1. Right-click the new table in the Contents pane, and select Display XY Data.
    2. Specify a name and location for the new feature class in the Output Feature Class field.
    3. Select Longitude for X Field.
    4. Select Latitude for Y Field.
    5. Select Current Map [Map] from the drop-down for Coordinate System.
    6. Click OK.
Display XY Data geoprocessing pane

The map displays the centroid of the polygon feature class.

Centroid of polygon feature class

Article ID:000021849

Software:
  • ArcGIS Pro

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic