HOW TO

Zählen der Stützpunkte für Linien- oder Polygon-Features in ArcGIS Pro

Last Published: January 18, 2024

Zusammenfassung

In some instances, it is necessary to find the number of vertices for each feature in a line or polygon feature class to perform further spatial analysis. This article provides the workflow for the counting of vertices of line or polygon features in ArcGIS Pro.

Vorgehensweise

  1. Start the ArcGIS Pro project.
  2. In the Contents pane, browse to and right-click the layer, and click Attribute Table.
  3. In the layer’s attribute table, click Add to add a new field in the table.
Click Add to add a new field to the attribute table.
  1. In the Fields view, name the new field as VxCount and ensure Data Type is set to Long.
  2. On the top ribbon, on the Fields tab, in the Changes group, click Save to save the edits made.
Click the Save button to save the edits.
  1. In the attribute table, right-click the header of the VxCount field, and select Calculate Field.
Select Calculate Field to calculate the number of vertices of the polygon layer.
  1. In the Calculate Field window, ensure the following parameters are specified as follows:
    1. Input Table: The desired layer. In this example, the layer titled BuildingDamage is selected.
    2. Field Name (Existing or New): VxCount.
    3. Expression Type: Python 3.
    4. VxCount =: !shape!.pointcount
    5. Leave other parameters as default.
    6. Click OK to run the tool.
Specify the tool parameter to calculate the number of vertices of the polygon layer in the Calculate Field window.

The image below shows the number of vertices for the layer titled BuildingDamage displayed in the VxCount field in the attribute table.

The number of vertices populated in the VxCount field in the attribute table.

Artikel-ID: 000027446

Benachrichtigungen erhalten und Lösungen für neue oder häufige Probleme finden

Unser neuer KI-Chatbot stellt zusammengefasste Antworten und Videolösungen für Sie bereit.

Esri Support App herunterladen

Zugehörige Informationen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln