Label | Explanation | Data Type |
Input Features | The input line features that will be split. | Feature Layer |
Point Features | The input point features whose locations will be used to split the input lines. | Feature Layer |
Output Feature Class | The output feature class that will contain the split lines. | Feature Class |
Search Radius (Optional) | The distance that will be used to split lines by their proximity to point features. Points within the search distance to an input line will be used to split those lines at the nearest location to the point along the line segment. If this parameter is not specified, the single nearest point will be used to split the line feature. If a radius is specified, all points within the radius will be used to split the line. | Linear Unit |
Summary
Splits line features based on intersection or proximity to point features.
Usage
The attributes of the input features will be maintained in the output feature class. The following fields will be added to the output feature class:
- ORIG_FID—Stores the feature IDs of the input features
- ORIG_SEQ—Stores the sequence number for each output line following the order of the segments from the starting vertex of the input feature
If the Search Radius parameter value is not specified, the nearest point will be used to split the line feature. This means that when multiple points coincide with the line, only one of the points will be used to split the line. If the Search Radius parameter value is specified, all points within the search radius will be used to split the line.
To generate accurate results, use a projected coordinate system for the inputs. You can use the Project tool to project spatial data from a geographic coordinate system to a projected coordinate system before using the Split Line at Point tool.
Parameters
arcpy.management.SplitLineAtPoint(in_features, point_features, out_feature_class, {search_radius})
Name | Explanation | Data Type |
in_features | The input line features that will be split. | Feature Layer |
point_features | The input point features whose locations will be used to split the input lines. | Feature Layer |
out_feature_class | The output feature class that will contain the split lines. | Feature Class |
search_radius (Optional) | The distance that will be used to split lines by their proximity to point features. Points within the search distance to an input line will be used to split those lines at the nearest location to the point along the line segment. If this parameter is not specified, the single nearest point will be used to split the line feature. If a radius is specified, all points within the radius will be used to split the line. | Linear Unit |
Code sample
This example shows how to run the SplitLineAtPoint function in a Python window.
import arcpy
arcpy.env.workspace = "C:/data"
arcpy.management.SplitLineAtPoint("streets.shp", "events.shp",
"splitline_out.shp", "20 Meters")
This example shows how to use a Python script to run the SplitLineAtPoint function.
# Name: SplitLineAtPoint_Example.py
# Description: Split line features based on near point features.
import arcpy
arcpy.env.workspace = "C:/data"
inFeatures = "streets.shp"
pointFeatures = "events.shp"
outFeatureclass = "splitline_out.shp"
searchRadius = "20 Meters"
arcpy.management.SplitLineAtPoint(inFeatures, pointFeatures, outFeatureclass,
searchRadius)