## HowTo:  Find the centroid of polygons using Calculate Geometry

Article ID: 32988 ArcGIS - ArcEditor 9.2, 9.3, 9.3.1, 10 ArcGIS - ArcInfo 9.2, 9.3, 9.3.1, 10 ArcGIS - ArcView 9.2, 9.3, 10, 9.3.1 ArcGIS for Desktop Advanced 10.2, 10.1, 10.2.1, 10.3, 10.3.1, 10.4, 10.2.2 ArcGIS for Desktop Basic 10.2, 10.2.1, 10.3, 10.4, 10.3.1, 10.2.2, 10.1 ArcGIS for Desktop Standard 10.2.1, 10.4, 10.1, 10.2, 10.3.1, 10.2.2, 10.3 N/A

#### Summary

These instructions describe how to find the centroid of polygons using Calculate Geometry within the attribute table of a feature class. This workflow can be especially useful when an Advanced/ArcEditor license is not available and the Feature to Point tool is inaccessible.

#### Procedure

1. In the map document, open the attribute table for the polygon feature class by right-clicking the layer name.
2. In the attribute table, navigate to Table Options > Add Field and add two new fields of type Double. Name one 'Longitude' and the other 'Latitude'.
3. Right-click the Longitude field and select Calculate Geometry.
4. In the Calculate Geometry dialog box, select 'X Coordinate of Centroid' from the Property drop-down menu. Click OK.
5. Right-click the Latitude field and select Calculate Geometry.
6. In the Calculate Geometry dialog box, select 'Y Coordinate of Centroid' from the Property drop-down menu. Click OK.
7. Export to a table:

a. In the attribute table, select Table Options > Export.
b. Specify a name and location for the new table.
c. Click OK and Yes to add the new table to the current map.
8. Make an XY Event layer:

a. Right-click the table that has been added to the Table of Contents and select Display XY Data.
b. For the X Field, select the Longitude field.
c. For the Y Field, select the Latitude field.
d. Select the spatial reference or coordinate system.
e. Click OK.

The ability to create an XY Event layer from the Table of Contents became available with the release of version 10.0 of ArcGIS Desktop. When working with version 9.2, 9.3 or 9.3.1, an XY Event layer can be created through ArcToolbox rather than from the Table of Contents. The Make XY Event Layer tool can be found in the Data Management Toolset. For more details on this tool see: ArcGIS Desktop 9.3 Help: Make XY Event Layer (Data Management)

9. (Optional) Export the event layer to a feature class; right-click the layer and navigate to Data > Export Data.

#### Related Information

Created: 5/2/2007

Article Rating: (2)

By egalkina - 03/04/2015 8:04 AM

Other - See details below.

This is not very time-effective. qGIS has a 1-step (not 8!) Polygon Centroid tool. Please consider creating a simpler GUI.

Rating:

By insyzygy - 01/18/2015 8:55 PM

Great article! It helped a lot!