HOW TO

Determine the XY coordinates of line vertices in ArcGIS Pro

Last Published: September 7, 2022

Summary

In ArcGIS Pro, vertices define the shape and location of the line and polygon features in a map. Precise locations can be determined by the XY coordinates of the vertices and are useful for data collections such as field samplings. In this example, the XY coordinates of the line vertices are determined in ArcGIS Pro.

Vertices of the line feature layer.

This article describes three workflows involving the Edit Vertices tool, the Split Line At Vertices tool, and the Feature Vertices To Points tool to determine the XY coordinates of vertices in ArcGIS Pro.

Procedure

Use the Edit Vertices tool

  1. Open the ArcGIS Pro project.
  2. On the Edit tab, in the Features group, click Modify.
  3. In the Modify Features pane, search for and click Edit Vertices to open the Edit Vertices pane.
  4. In the map, select the line or polygon feature. The XY coordinates of the vertices are displayed in the Edit Vertices pane. In this example, the XY coordinates of the line vertices are listed in the Longitude (dd) and Latitude (dd) columns.
The XY coordinates value of the vertices.

Use the Split Line At Vertices tool

Note:
The Split Line At Vertices tool requires an ArcGIS Desktop Advanced license.
  1. Open the ArcGIS Pro project.
  2. Use the Split Line At Vertices tool to split the line features at their vertices.
    1. In the Geoprocessing pane, search for and click the Split Line At Vertices tool. Refer to ArcGIS Pro: Run a tool in the Geoprocessing pane for instructions.
    2. In the Split Line At Vertices pane, on the Parameters tab, select the line feature layer from the Input Features drop-down list.
    3. Provide a name for Output Feature Class, and click Browse The Browse icon. to specify the location for the output feature class.
    4. Click Run.
The Split Line At Vertices tool pane to be configured.
  1. Add a new field for the X coordinates to the attribute table of the new feature class.
    1. In the Contents pane, right-click the feature layer, and click Attribute Table.
    2. In the attribute table, click Add Field The Add Field icon..
    3. In the fields view, specify a name for the field in the Field Name column. In this example, the field name is Longitude.
    4. Double-click the Alias column of the new field and specify an alias for it.
    5. Double-click the Data Type column of the new field and select Double from the drop-down menu.
    6. On the top ribbon, on the Fields tab, click Save.
The new field is created in the Fields view.
  1. Repeat Step 3 to add a new field for the Y coordinates to the attribute table. In this example, the field name is Latitude.
The two new fields are created in the Fields view.
  1. Populate the spatial information for the X coordinates using the Calculate Geometry tool.
    1. Right-click the field header and select Calculate Geometry.
    2. In the Calculate Geometry window, select the feature layer created in Step 2 from the Input Features drop-down list.
    3. Under Geometry Attributes, select the field for Field (Existing or New), and specify Property from the drop-down list. In this example, the Line start x-coordinate is selected. Refer to ArcGIS Pro: Calculate Geometry Attributes (Data Management) for more information.
    4. Select the coordinate system format from the Coordinate Format drop-down list.
    5. Select Current Map [Map] for Coordinate System.
    6. Click OK.
The Calculate Geometry window to be configured.
  1. Repeat Step 5 to populate the spatial information for the Y coordinates. In this example, Line start y-coordinate is selected for the Property parameter.
The Calculate Geometry window to be configured.

The XY coordinates of the line vertices are populated in the attribute table in ArcGIS Pro.

The XY coordinates are populated in the attribute table.

Use the Feature Vertices To Points tool

Note:
The Feature Vertices To Points tools requires an ArcGIS Desktop Advanced license.
  1. Open the ArcGIS Pro project.
  2. Use the Feature Vertices To Points tool to create a point feature class generated from the vertices.
    1. In the Geoprocessing pane, search for and click the Feature Vertices To Points tool. Refer to ArcGIS Pro: Run a tool in the Geoprocessing pane for instructions.
    2. In the Feature Vertices To Points pane, on the Parameters tab, select the line feature layer from the Input Features drop-down list.
    3. Provide a name for Output Feature Class, and click Browse The Browse icon. to specify the location for the output feature class.
    4. For Point Type, select All vertices from the drop-down list.
    5. Click Run.
The Feature Vertices To Points tool pane to be configured.
  1. Add a new field for the X coordinates to the attribute table of the new feature class.
    1. In the Contents pane, right-click the feature layer, and click Attribute Table.
    2. In the attribute table, click Add Field The Add Field icon..
    3. In the fields view, specify a name for the field in the Field Name column. In this example, the field name is Longitude.
    4. Double-click the Alias column of the new field and specify an alias for it.
    5. Double-click the Data Type column of the new field and select Double from the drop-down menu.
    6. On the top ribbon, on the Fields tab, click Save.
The new field is created in the Fields view.
  1. Repeat Step 3 to add a new field for the Y coordinates to the attribute table. In this example, the field name is Latitude.
The two new fields are created in the Fields view.
  1. Calculate the X coordinates field.
    1. Right-click the field header and select Calculate Field.
    2. In the Calculate Field window, the Input Table and Field Name (Existing or New) parameters are automatically selected.
    3. For Expression Type, select Python 3.
    4. Copy the following expression and paste it into the Expression box.
!SHAPE.FirstPoint.X!
  1. Click the Verify The Verify icon. icon to validate the expression.
  2. Click Apply.
The Calculate Field window to be configured.
  1. Calculate the Y coordinates field.
    1. Right-click the field header and select Calculate Field.
    2. In the Calculate Field window, the Input Table and Field Name (Existing or New) parameters are automatically selected.
    3. For Expression Type, select Python 3.
    4. Copy the following expression and paste it into the Expression box.
!SHAPE.FirstPoint.Y!
  1. Click the Verify The Verify icon. icon to validate the expression.
  2. Click Apply.
The Calculate Field window to be configured.

The XY coordinates of the line vertices are populated in the attribute table in ArcGIS Pro.

The XY coordinates are populated in the attribute table.

Article ID:000028277

Software:
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 8 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