The input LRS intersection feature class or layer.
Feature Layer
out_dataset
The output table to which the results will be posted.
Table
tvd
(Optional)
Filters routes that have been edited after a certain date so that intersections can be generated according to that filter.
Date
Code sample
CalculateIntersectingRouteMeasures example 1 (Python window)
The following demonstrates how to use the CalculateIntersectingRouteMeasures function in the Python window.
# Name: CalculateIntersectingRouteMeasures_Pro_ex1.py
# Description: Creates a table of all the routes and measures at each intersection location in the Python window.
# Requirements: ArcGIS Linear Referencing
# Local tool variables
in_intersection_feature_class = r"C:\Data\SampleData.gdb\LRS\Intersection"
out_dataset = r"C:\Data\SampleData.gdb\LRS\IntersectingRouteMeasures"
tvd = "11/23/2022"
# Run the tool
arcpy.lr.CalculateIntersectingRouteMeasures(in_intersection_feature_class, out_dataset, tvd)
CalculateIntersectingRouteMeasures example 2 (stand-alone script)
The following demonstrates how to use the CalculateIntersectingRouteMeasures function as a stand-alone script.
# Name: CalculateIntersectingRouteMeasures_Pro_ex2.py
# Description: Creates a table of all the routes and measures at each intersection location in a stand-alone script.
# Requirements: ArcGIS Linear Referencing
# Import arcpy module
import arcpy
# Local tool variables
in_intersection_feature_class = r"C:\Data\SampleData.gdb\LRS\Intersection"
out_dataset = r"C:\Data\SampleData.gdb\LRS\IntersectingRouteMeasures"
tvd = "11/23/2022"
# Run the tool
arcpy.lr.CalculateIntersectingRouteMeasures(in_intersection_feature_class, out_dataset, tvd)