操作方法

操作方法:使用“计算几何”找到面要素的质心

Last Published: July 20, 2023

摘要

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.

过程

  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:000009381

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

相关信息

发现关于本主题的更多内容