ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Detect Gaps For Linear Events

  • Resumen
  • Uso
  • Sintaxis
  • Muestra de código
  • Entornos
  • Información de licenciamiento

Resumen

Checks routes on the network for gaps between linear events.

Uso

  • The input Event Layer parameter must be one of the linear event tables registered with the input Network Layer.

  • The Output Feature Class represents the gaps between linear events.

  • The Output Feature Class contains the following fields: NetworkName, RouteID, TVD (Temporal View Date), EventLayer, FromMeasure and ToMeasure.

Sintaxis

arcpy.locref.DetectGapsForLinearEvents(in_network, in_event, out_feature, {in_tvd}, {in_from_measure}, {in_to_measure}, {in_tolerance})
ParámetroExplicaciónTipo de datos
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
(Opcional)

The temporal view date for the network.

Date
in_from_measure
(Opcional)

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

Double
in_to_measure
(Opcional)

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

Double
in_tolerance
(Opcional)

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

Double

Muestra de código

DetectGapsForLinearEvents example 1 (in-line)

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

# tool variables
in_network = "MilePoint"
in_event = "Speed_Limit"
out_feature = "C:/data/Outputs.gdb"

# set current workspace
arcpy.env.workspace = "C:/Data/NYData.gdb"

# execute the tool
arcpy.DetectGapsForLinearEvents_locref(in_network, in_event, out_feature)
DetectGapsForLinearEvents example 2 (stand-alone Python script)

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

# Name: DetectGapsForLinearEvents.py
# Description: Convert Roads and Highways Network Layer to Layer and Detect Measures Out Of Range for Events in a file geodatabase

# 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_locref(network, event, gaps_Output)

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento.

Información de licenciamiento

  • Basic: Requiere Roads and Highways
  • Standard: Requiere Roads and Highways
  • Advanced: Requiere Roads and Highways

Temas relacionados

  • An overview of the Location Referencing toolbox

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal