摘要
This tool calculates and reports the concurrent route segments within an LRS Network. These concurrencies are reported with the measures for each concurrent route segment and a time range the concurrency exists. The route dominance rules for the LRS Network can be used to determine the dominant route in each concurrent section.
用法
The output feature class contains the following fields: NetworkID, RouteID, SectionID, FromMeasure, ToMeasure, FromDate, ToDate, DominantFlag, and DominantError.
The DominantFlag column has two potential values. A record with a value of 1 is the dominant route in the concurrent section. Any route with a value of 0 is the subordinate route in the concurrent section.
The DominantError column has five potential values.
Dominant Error value Description 0
No error when calculating the dominant route in the concurrent section.
1
Two or more routes have the same attribute value for the concurrent section. The dominant route was randomly selected.
2
Null or no values were present for the attribute, or attributes, used to calculate the dominant route in the concurrent section.
3
Too many values were present for the attribute, or attributes, used to calculate the dominant route in the concurrent section.
4
One of two conditions are present in the concurrent section: the route is not calibrated in the concurrent section or the centerline that composes the concurrent section doesn't align with the geometry of the route.
The SectionID Guids in the output are new and not associated with any existing Guids used throughout Esri Roads and Highways. The GUIDs are unique for each concurrent section in the network, meaning that each route and measure portion in a given concurrent section will have a record with the same GUID.
语法
CalculateRouteConcurrencies_locref (in_network, out_table, {in_tvd}, {find_dominance})
参数 | 说明 | 数据类型 |
in_network | The network containing the routes on which concurrencies will be calculated. | Feature Layer |
out_table | The table to be created, containing all the concurrent sections in the Source LRS Network. | Table |
in_tvd (可选) | The temporal view date for the network. | Date |
find_dominance (可选) | Indicates whether to use route dominance rules configured for in_network.
| Boolean |
代码示例
CalculateRouteConcurrencies example 1 (Python window)
Demonstrates how to use the CalculateRouteConcurrencies tool in the Python window in ArcMap.
# tool variables
in_network = r"C:\Data\NY_Data.gdb\LRSN_MilePoint"
out_table = r"C:\Data\NY_Data.gdb\ConcurrenciesOutput"
in_tvd = ""
find_dominance = "FIND_DOMINANCE"
# set current workspace
arcpy.env.workspace = "C:/Data/NY_Data.gdb"
# execute the tool
arcpy.CalculateRouteConcurrencies_locref(in_network, out_table, in_tvd, find_dominance)
CalculateRouteConcurrencies example 2 (stand-alone Python script)
Demonstrates how to use the CalculateRouteConcurrencies tool as a stand-alone Python script.
# Name: FindRouteConcurrencies.py
# Description: Identifies all the route concurrencies in a given network.
# Requires: Esri Roads and Highways Solution
# Import arcpy module
import arcpy
# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")
# Local variables
network = r"C:\Data\NY_Data.gdb\LRSN_MilePoint"
output_table = r"C:\Data\NY_Data.gdb\Concurrencies_Output"
# Execute the tool
arcpy.CalculateRouteConcurrencies_locref(network, output_table, "", "FIND_DOMINANCE")
环境
此工具不使用任何地理处理环境。
许可信息
- ArcGIS Desktop Basic: 需要 Roads and Highways
- ArcGIS Desktop Standard: 需要 Roads and Highways
- ArcGIS Desktop Advanced: 需要 Roads and Highways