English

How To: Determine the XY coordinates of line vertices in ArcMap

Summary

The exact location of stops within a route can be determined by finding the XY coordinates of the line vertices. This is important for scientists doing field samplings, for urban planners planning public transportation routes, or for travel agents planning vacation spots.

The image below shows a digitized line. The XY coordinates of the line vertices can be determined in ArcMap.

This is an example of a line.

Procedure

Use one of the following methods to determine the XY coordinates of line vertices in ArcMap:

Through the Edit Sketch Properties window
  1. In ArcMap, right-click the layer of interest, and select Edit Features > Start Editing.
  2. On the Editor toolbar, click the Edit Vertices tool This is the Edit Vertices tool..
  3. Click the Sketch Properties tool This is the Sketch Properties tool.. The Edit Sketch Properties window opens, and the XY coordinates of the line vertices are listed in the X and Y columns. For more information, refer to ArcGIS Help: Using the Edit Sketch Properties window.

    This is the Edit Sketch Properties window.
     
Using the Split Line At Vertices tool
Note:
The Split Line At Vertices tool is only available with an ArcGIS Desktop Advanced license. For an ArcGIS Desktop Basic or Standard license, splitting a line is possible by downloading the Curves and Lines add-in.
  1. In ArcMap, navigate to the Search tool, and type Split Line At Vertices in the search bar.
  2. Click the Split Line At Vertices (Data Management) tool. This opens the Split Line At Vertices dialog box. For more information, refer to ArcGIS Help: Split Line At Vertices.
    1. Specify the Input Features from the drop-down list. The Output Feature Class is generated once the Input Features are specified.
    2. Click OK. A line layer containing split lines is generated.

      This is the Split Line at Vertices dialog box.
       
  3. Right-click the line layer in Table Of Contents, and click Open Attribute Table.
  4. Click Table Options > Add Field to create a new field for the X coordinate. Specify the data Type as Double, and click OK.

    This is the Add Field dialog box.
     
  5. Start an edit session.
  6. Right-click the field header for the X coordinate, and click Calculate Geometry. This opens the Calculate Geometry dialog box.
    1. Specify Property from the drop-down list. For more information, refer to Calculating area, length, and other geometric properties.
      Note:
      The line direction depends on the drawing direction. 'Line Start' refers to the starting point of the line. 'Line End' refers to the ending point of the line. 'Midpoint' refers to the middle point between the start and end point.
      
    2. Maintain the default Use coordinate system and Units parameters.
    3. Click OK. Repeat Steps 4 to 6 for the Y coordinate.

      This is the Calculate Geometry dialog box.

      The X and Y coordinates are generated based on the coordinate properties specified.

      These are X and Y coordinates generated.
Using the Feature Vertices To Points tool
Note:
The Feature Vertices To Points tool is only available with an ArcGIS Desktop Advanced license.
 
  1. In ArcMap, navigate to the Search tool, and type Feature Vertices To Points in the search bar.
  2. Click the Feature Vertices To Points (Data Management) tool. This opens the Feature Vertices To Points dialog box. For more information, refer to ArcGIS Help: Feature Vertices To Points.
    1. Specify the Input Features from the drop-down list. The Output Feature Class is generated once the Input Features are specified.
    2. Determine the Point Type (optional) from the drop-down list. Maintain ALL as the point type parameter.
    3. Click OK. A point layer containing all the vertices on the edited line is generated.

      This is the Feature Vertices to Points dialog box.
       
  3. Right-click the point layer in the Table Of Contents, and click Open Attribute Table.
  4. Click Table Options > Add Field to create a new field for the X coordinate. Specify the data Type as Double.
  5. Start an edit session.
  6. Right-click the X coordinate field header, and click Field Calculator. This opens the Field Calculator dialog box.
    1. Specify Parser as Python.
    2. Select Fields as the X coordinate.
    3. Maintain the default Type as Number.
    4. Use the following code to populate the selected field with the value of the X or Y coordinate.
       
      For the X coordinate field:
      !SHAPE.FirstPoint.X!
      For the Y coordinate field:
      !SHAPE.FirstPoint.Y!
    5. Click OK. Repeat Steps 4 to 6 for the Y coordinate.

      This is the Field Calculator dialog box.

      The new fields are populated with the X and Y coordinates.

      These are the X and Y coordinates generated.
       

Related Information