CÓMO

Buscar el centroide de polígonos mediante Calcular geometría

Last Published: July 20, 2023

Resumen

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.

Procedimiento

  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:
    1. In the attribute table, select Table Options > Export.
    2. Specify a name and location for the new table.
    3. Click OK and Yes to add the new table to the current map.
  8. Make an XY Event layer:
    1. Right-click the table that has been added to the Table of Contents and select Display XY Data.
    2. For the X Field, select the Longitude field.
    3. For the Y Field, select the Latitude field.
    4. Select the spatial reference or coordinate system.
    5. Click OK.
Note:
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)
  1. (Optional) Export the event layer to a feature class; right-click the layer and navigate to Data > Export Data.

Id. de artículo:000009381

Obtener ayuda de expertos en ArcGIS

Contactar con soporte técnico

Descargar la aplicación de soporte de Esri

Ir a las opciones de descarga

Información relacionada

Descubrir más sobre este tema