HOW TO

Count the vertices for line or polygon features in ArcGIS Pro

Last Published: January 18, 2024

Summary

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.

Procedure

  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.

Article ID: 000027446

Software:
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 7 x
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options