Detect Gaps For Linear Events (Roads and Highways)

许可等级:BasicStandardAdvanced

摘要

Checks routes on the network for gaps between linear events.

用法

语法

DetectGapsForLinearEvents_roads (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 gaps.

Feature Layer
in_event

The linear event features to be checked for gaps.

Feature Layer
out_feature

The output feature class containing lines where there are gaps between 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 gaps will be detected.

Double
in_to_measure
(可选)

Defines the upper bound of the portion of the route on which gaps will be detected.

Double
in_tolerance
(可选)

Tolerance, in LRM (Linear Referencing Method) units, used to compare events on routes.

Double

代码实例

DetectGapsForLinearEvents example 1 (in-line)

The following Python window script demonstrates how to use the DetectGapsForLinearEvents function in the immediate mode.

Missing source code file
DetectGapsForLinearEvents example 2 (stand-alone Python script)

The following Python script demonstrates how to use DetectGapsForLinearEvents in a stand-alone Python script.

# Name: Detect Measures Out of Range.py
# Description: Convert Roads and Highways Network Layer to Layer and Detect Measures Out Of Range for Events in a file geodatabase
# 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"
event = r"C:\Data\NY_Data.gdb\LRSE_Speed_Limit"
gaps_Output = r"C:\Data\Outputs.gdb\Gaps_Output"

# Process: Detect Gap for linear events
arcpy.env.overwriteOutput = 1
arcpy.DetectGapsForLinearEvents_roads(network, event, gaps_Output)

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcGIS for Desktop Basic: 需要 Roads and Highways
ArcGIS for Desktop Standard: 需要 Roads and Highways
ArcGIS for Desktop Advanced: 需要 Roads and Highways
4/27/2014