Split Line at Point (Data Management)

Summary

Splits line features based on intersection or proximity to point features.

Usage

  • Input Features must be lines.

  • If Search Radius (search_radius in Python) is unspecified, the nearest point will be used to split the line feature. If a Search Radius is specified, all points within the search radius are used to split the line.

Parameters

LabelExplanationData Type
Input Features

The input line features to 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 new feature class that will be created containing the split lines.

Feature Class
Search Radius
(Optional)

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 unspecified, 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

arcpy.management.SplitLineAtPoint(in_features, point_features, out_feature_class, {search_radius})
NameExplanationData Type
in_features

The input line features to 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 new feature class that will be created containing the split lines.

Feature Class
search_radius
(Optional)

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 unspecified, 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

SplitLineAtPoint example 1 (Python window)

This example shows how to run SplitLineAtPoint tool in a Python window.

import arcpy
arcpy.env.workspace = "C:/data"
arcpy.SplitLineAtPoint_management("streets.shp", "events.shp", 
                                  "splitline_out.shp", "20 Meters")
SplitLineAtPoint example 2 (stand-alone script)

This example shows how to use a Python script to run SplitLineAtPoint.

#Name: SplitLineAtPoint_Example.py
# Description: split line features based upon near point features; Search Distance is in linear 
# unit meters

import arcpy

arcpy.env.workspace = "C:/data"
inFeatures = "streets.shp"
pointFeatures = "events.shp"
outFeatureclass = "splitline_out.shp"
searchRadius = "20 Meters"

arcpy.SplitLineAtPoint_management(inFeatures, pointFeatures, outFeatureclass, 
                                  searchRadius)

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Yes

Related topics