English

How To: Create a start, midpoint, and/or endpoint feature class of a line with an ArcGIS for Desktop Basic or Standard license

Summary

The steps below describe how to create a start, midpoint, and/or endpoint feature class from the vertices of an existing line feature class. This can be useful when working with an ArcGIS for Desktop Basic (ArcView) or Standard (ArcEditor) license and the Feature Vertices to Points tool is unavailable.

Procedure

Method 1: ArcGIS version 10.2.1 or newer: Use the Add Geometry Attributes (Data Management) tool. With this tool there is the option to generate the line start, mid, and end (LINE_START_MID_END) coordinates. Below are some suggested steps when using this tool.

A. Add the START_X, START_Y, MID_X, MID_Y, END_X, and END_Y fields to the line feature class with the Add Geometry Attributes tool.

1. Open the Add Geometry Attributes (Data Management) tool; typically located in in ArcToolbox under Data Management Tools > Features > Add Geometry Attributes.

2. Specify the Input Features; new attribute fields are added to the input features to store properties such as length, area, or x-, y-, z-, and m-coordinates.

3. Check the box for LINE_START_MID_END under the Geometry Properties section.

• The remaining parameters are optional and can be set as needed.

4. Click OK to run the tool. This should add the START_X, START_Y, MID_X, MID_Y, END_X, and END_Y to the attribute table.
[O-Image]


B. Create the start, midpoint, and/or endpoint layers from the calculated values above.

1. Open the Make XY Event Layer tool from the ArcToolbox (Data Management Tools > Layers and Table Views > Make XY Event Layer).

• XY Table is the Line feature class from above.
• X Field is either START_X, MIDPOINT_X, or END_X
• Y Field is either START_Y, MIDPOINT_Y, or END_Y
• Specify Z Field (Optional)
• Specify the output Layer Name or Table View; example 'Starting_Points', 'Midpoint _Points, or 'End_Points.
• Specify Spatial Reference (optional).

2. Click OK to run the tool.

• This generates a new layer in the Table of Contents that displays the points for either the start, mid, and/or end locations of the line. Repeat as needed for each start, midpoint, and/or endpoint event layers.
[O-Image]


C. (Optional) Export each XY layer created above to a permanent shapefile or feature class.

1. Open the Feature Class to Feature Class (Conversion) tool, typically located in ArcToolbox under Conversion Tools > To Geodatabase > Feature Class to Feature Class.

• Specify the input features as one of the start, midpoint, and/or end event layers created above.
• Specify the output location as a geodatabase or folder location.
• Assign an Output Feature Class name.

2. Click OK to run the tool.

• Repeat as needed for each start, midpoint, and/or end event layers.
[O-Image]

Method 2: ArcGIS 10.2 and previous: With these earlier product versions, it is best to use a combination of the Add Field and Calculate Geometry tools to generate the coordinate values for the line.

A. Add the START_X and START_Y, MIDPOINT_X and MIDPOINT_Y, and/or END_X and END_Y fields to the line feature class.

1. Right-click the layer in the table of contents and choose Open Attribute Table.

2. Click the Table Options button in the table window.

3. Click Add Field.

4. Type the name of the field.

• Example: START_X

5. Click the Type arrow and select the Double field type.

6. Set any other field properties as necessary and click OK.

• Repeat these steps for each START_X and START_Y, MIDPOINT_X and MIDPOINT_Y, and/or END_X and END_Y as needed.
[O-Image]


B. Use the Calculate Geometry option to calculate the appropriate X Y values.

1. Start an edit session.

Note:
Calculations can be made without being in an editing session; however, in that case, there is no way to undo the results.

2. Right-click the layer and click Open Attribute Table.

Note:
Geometric calculations can only be performed on attribute tables.

3. Right-click the field heading for which you want to make a calculation and click Calculate Geometry.
geometric This should be one of the following fields: START_X, START_Y, MIDPOINT_X, MIDPOINT_Y, END_X, or END_Y.

4. Click the geometric property you want to calculate. This should coincide with the field name and be applied as follows:

• START_X: X-coordinate of line start
• START_Y: Y-coordinate of line start
• MIDPOINT_X: X-coordinate of line midpoint
• MIDPOINT_Y: Y-coordinate of line midpoint
• END_X: X-coordinate of line end
• END_Y: Y-coordinate of line end

5. Click to use either the coordinate system of the data source or the coordinate system of the data frame.

6. Click the units of the output calculations.

7. Optionally, if you have selected records in the table, choose whether to apply the calculations to all records or just the selected ones.

8. Click OK.

• Repeat these steps for each START_X and START_Y, MIDPOINT_X and MIDPOINT_Y, and/or END_X and END_Y as needed
[O-Image]


C. Create the start, mid, and/or endpoint layers from the calculated values above.

1. Open the Make XY Event Layer tool from the toolbox (Data Management Tools > Layers and Table Views > Make XY Event Layer).

• XY Table is the line feature class from above.
• X Field is either START_X, MIDPOINT_X, or END_X.
• Y Field is either START_Y, MIDPOINT_Y, or END_Y.
• Specify a Z Field (Optional).
• Specify the output Layer Name or Table View, for example 'Starting_Points', 'Midpoint _Points', or 'End_Points'.
• Specify Spatial Reference (optional).

2. Click Ok to run the tool.

• This should generate a new layer in the table of contents that displays the points for either the start, mid, and/or end locations of the line. Repeat as needed for each start, midpoint, and/or end event layers.
[O-Image]


D. (Optional) Export each XY layer created above to a permanent shapefile or feature class.

1. Open the Feature Class to Feature Class (Conversion) tool, typically located in ArcToolbox under Conversion Tools > To Geodatabase > Feature Class to Feature Class.

• Specify the input features as one of the start, midpoint, and/or end event layers created above.
• Specify the output location as a geodatabase or folder location
• Assign an Output Feature Class name.

2. Click OK to run the tool.

• Repeat as needed for each start, midpoint, and/or end event layers.
[O-Image]

Related Information