サマリー
Checks routes on the network for overlaps between linear events.
使用法
The input Event Layer must be one of the linear event tables registered with the input Network Layer.
The Output Feature Class represents the overlaps between linear events.
The Output Feature Class contains the following fields: NetworkName, RouteID, TVD (Temporal View Date), EventLayer, FromMeasure and ToMeasure.
構文
DetectOverlapsForLinearEvents_locref (in_network, in_event, out_feature, {in_tvd}, {in_from_measure}, {in_to_measure}, {in_tolerance})
パラメーター | 説明 | データ タイプ |
in_network | The network containing the linear event features to be checked for overlaps. | Feature Layer |
in_event |
The linear event features to be checked for overlaps. | Feature Layer |
out_feature | The output feature class containing lines where there are overlapping events. | Feature Class |
in_tvd (オプション) | The temporal view date for the network. | Date |
in_from_measure (オプション) | Defines the lower bound of the portion of the route on which overlaps will be detected. | Double |
in_to_measure (オプション) | Defines the upper bound of the portion of the route on which overlaps will be detected. | Double |
in_tolerance (オプション) | Tolerance, in LRM (Linear Referencing Method) units, used to compare events on routes. | Double |
コードのサンプル
DetectOverlapsForLinearEvents example 1 (in-line)
The following Python window script demonstrates how to use the DetectOverlapsForLinearEvents function in immediate mode.
# tool variables
in_network = "MilePoint"
in_event = "Functional_Class"
out_feature = "Overlaps_Output"
in_tvd = "2/28/2014"
in_to_measure = ""
in_from_measure = ""
in_tolerance = ""
# set current workspace
arcpy.env.workspace = "C:/data/Outputs.gdb"
# execute the tool
arcpy.DetectOverlapsForLinearEvents_locref(in_network, in_event, out_feature, in_tvd, in_to_measure, in_from_measure, in_tolerance)
DetectOverlapsForLinearEvents example 2 (stand-alone Python script)
The following Python script demonstrates how to use DetectOverlapsforLinearEvents in a stand-alone Python script.
# Name: Detect OverlapsForLinearEvents.py
# Description: Convert Roads and Highways Network Layer to Feature Layer and Detect Overlaps for Linear Events in a file geodatabase
# Requires: Esri Roads and Highways
# Import arcpy module
import arcpy
# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")
# Local variables
network = r"C:\Data\NY_Data.gdb\LRSN_MilePoint"
event = r"C:\Data\NY_Data.gdb\LRSE_Speed_Limit"
overlaps_Output = r"C:\Data\Outputs.gdb\Gaps_Output"
# Process: Detect Overlaps for linear events
arcpy.env.overwriteOutput = 1
arcpy.DetectOverlapsForLinearEvents_locref(network, event, overlaps_Output)
環境
このツールは、ジオプロセシング環境を使用しません。
ライセンス情報
- ArcGIS Desktop Basic: 次のものが必要 Roads and Highways
- ArcGIS Desktop Standard: 次のものが必要 Roads and Highways
- ArcGIS Desktop Advanced: 次のものが必要 Roads and Highways