Calculate Intersecting Route Measures (Location Referencing)

Summary

Creates a table of all the routes and measures at each intersection location.

Learn more about generating and updating intersections in Pipeline Referencing or generating and updating intersections in Roads and Highways.

Usage

  • The Intersection Feature Class parameter can use LRS intersection output from the Create LRS Intersections and Generate Intersections tools.

  • The Temporal View Date parameter is optional and filters route information for the specified time.

Parameters

LabelExplanationData Type
Intersection Feature Class

The input LRS intersection feature class or layer.

Feature Layer
Output Dataset

The output table to which the results will be posted.

Table
Temporal View Date
(Optional)

Filters routes that have been edited after a certain date so that intersections can be generated according to that filter.

Date

arcpy.locref.CalculateIntersectingRouteMeasures(in_intersection_feature_class, out_dataset, {tvd})
NameExplanationData Type
in_intersection_feature_class

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_ex2.py
# Description: Creates a table of all the routes and measures at each intersection location.
# Requirements: ArcGIS Location 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"

# Execute the tool
arcpy.locref.CalculateRouteConcurrencies(in_route_features, 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_ex1.py
# Description: Creates a table of all the routes and measures at each intersection location.
# Requirements: ArcGIS Location Referencing

# Import arcpy module
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("LocationReferencing")

# 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"

# Execute the tool
arcpy.locref.CalculateIntersectingRouteFeatures(in_route_features, out_dataset, tvd)

# Check in licenses
arcpy.CheckInExtension('LocationReferencing')

Licensing information

  • Basic: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
  • Standard: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)
  • Advanced: Requires ArcGIS Location Referencing (ArcGIS Pipeline Referencing or ArcGIS Roads and Highways)

Related topics