Split Line At Point (Data Management)
Splits line features based on intersection or proximity to point features.
Input Features must be lines.
If Search Distance (search_radius) is unspecified, a nearest point will be used to split the line feature.
The input line features to be split.
The input point features whose locations will be used to split the input lines.
The new feature class that will be created containing the split lines.
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.
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 # Requirements: # Author: ESRI import arcpy from arcpy import env env.workspace="C:/data" inFeatures="streets.shp" pointFeatures="events.shp" outFeatureclass="splitline_out.shp" searchRadius= "20 Meters" try: arcpy.SplitLineAtPoint_management(inFeatures, pointFeatures, outFeatureclass, searchRadius) except Exception, e: # If an error occurred, print line number and error message import traceback, sys tb = sys.exc_info() print "Line %i" % tb.tb_lineno print e.message
This example shows how to run SplitLineAtPoint tool in a Python window.
import arcpy from arcpy import env env.workspace="C:/data" arcpy.SplitLineAtPoint_management("streets.shp","events.shp","splitline_out.shp","20 Meters")