Updated – 9/17/2017
Fixed error dealing with setting spatial reference
Updated – 5/04/2016
All polyline fields are now included in the output Point feature class
Updated – 4/14/2016
Added additional INTERVAL point creation types
Fixed bug when creating points in reversed order
Previous Updates
Added capability to create only start and end points
Added capability to create the points starting at either the beginning, or end of the line
Fixed compatibility with Python 3 for ArcGIS Pro
(If you’re using Firefox, then right click and Save Link As)
Download the Create Points on Lines Toolbox – works with ArcGIS 10.1+
View the Source Code
(any donations go towards hosting costs)
The Create Points on Lines tool creates points on lines at a specified distance, percentage, or interval value. The value can be fixed or field based. There is also an option to add the starting point, end point, or both to the output Point feature class.
NEW FEATURES
All polyline fields are now included in the output Point feature class.
Ability to choose the starting location. For example, if you want a point created 10 feet from the end of the line, change the Starting Location parameter to END.
There are two new point creation types: INTERVAL BY DISTANCE and INTERVAL BY PERCENTAGE.
If DISTANCE is chosen, one point will be created for each line at the specified distance.
If PERCENTAGE is chosen, one point will be created for each line at the specified percentage.
If INTERVAL BY DISTANCE is chosen, points will be created along each line at the specified distance interval. For example, if 5 is entered, then points will be created every 5 feet (or whatever units the coordinate system is in).
If INTERVAL BY PERCENTAGE is chosen, points will be created along each line at the specified percentage interval. For example, if 0.5 is entered, then points will be created at 5%, 10%, 15%, etc, all the way up to 100%.
If START/END POINTS is chosen, one point will be created at each end of the line.
The value used to create the points can be entered as a parameter, or a field can be selected.
The output Point feature class contains a field called LineOID, which is the OID of the line the point was created from. There is also a field called Value, which contains the value that was used to create the point.
Be sure to view the Tool Help within the tool dialog box for detailed instructions. Also, check the Geoprocessing Results for any error messages.
Here’s a screenshot of the parameters:
I hope someone finds this tool useful. Please leave a comment if you have any questions or problems, and be sure to check out the other tools I’ve created!
127 thoughts on “ArcGIS Toolbox – Create Points on Polylines with ArcPy”