How To: Split a line into specified distances with a remainder
A line can be split at specified distances with a remainder length using the Generate Points Along Lines and Split Line at Point tools. Using these tools, the remaining distance is less than the specified distance.
Note: The Split Line at Point tool is only available in ArcGIS Desktop with an Advanced license.
The Generate Points Along Lines and Split Line at Point tools provide the same function as the Divide Line by Length Add-in, which can be downloaded from the ArcGIS website. Additionally, lines can be split proportionally based on specified distances using the Proportion command in the COGO toolbar, which requires a Standard or Advanced license. However, this option divides any difference between the line length and the sum of length specified proportionately among new line segments, and therefore there is no remainder segment.
Note: For the line to split at the points generated, ensure that the data is in a projected coordinate system.
This workflow describes how to split a line into segments of specified distance with a leftover distance using the Generate Points Along Lines and Split Line at Point tools.
Note: To determine the total length of the line to split, right-click the line feature class layer > Open Attribute Table.
- Generate points on the line based on a specified distance, to be used later as separation points, using the Generate Points Along Lines tool. The following image is a sample output of points generated along the line at 25 km intervals, the distance specified in the Generate Points Along Lines dialog box.
- From the Geoprocessing menu > Search For Tools > type in the search box Generate Points Along Lines, and click the Generate Point Along Lines tool.
- In the Generate Points Along Lines dialog box, under Input Features, select the line feature class. The Output Feature Class is automatically generated when the Input Features is specified.
- For Point Placement, select DISTANCE from the drop-down menu.
- For Distance (optional), define the value and unit of distance to split.
- Click OK.
- Split the line based on the generated points by using the Split Line at Point tool.
Note: Search Radius is specified to split the line at all points which coincide with the line feature within the search radius. Otherwise, the line feature only splits at the first point.
- From the Geoprocessing menu, Search For Tools > type Split Line at Point in the search box, and click the Split Line at Point tool.
- In the Split Line at Point dialog box, under Input Features, select the line feature class. The Output Feature Class is automatically generated when the Input Features is specified.
- For Point Features, select the point feature class generated in Step 1.
- Define the Search Radius, and click OK.
The figure below is the output of a line split into eight parts, 25 kilometers each, and a leftover segment of roughly 13 kilometers. Another line feature class and layer is automatically created by ArcMap to represent the split lines, upon the completion of splitting.
Note: The number and length of each split part can be verified by viewing the SHAPE_Length column in the attribute table.
- How To: Split line segments at midpoint
- FAQ: Why is the Split Line at Point tool not splitting at the desired points?
- ArcGIS Help: Methods for splitting line features
- Divide Line By Length Add-in
Last Published: 8/15/2019
Article ID: 000017659
Software: ArcMap 10.5.1, 10.5