ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Detect Gaps For Linear Events

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Checks routes on the network for gaps between linear events.

Usage

  • 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.

Syntax

DetectGapsForLinearEvents_roads (in_network, in_event, out_feature, {in_tvd}, {in_from_measure}, {in_to_measure}, {in_tolerance})
ParameterExplanationData Type
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
(Optional)

The temporal view date for the network.

Date
in_from_measure
(Optional)

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

Double
in_to_measure
(Optional)

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

Double
in_tolerance
(Optional)

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

Double

Code sample

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_roads(network, 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: 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)

Environments

This tool does not use any geoprocessing environments

Licensing information

  • ArcGIS Desktop Basic: Requires Roads and Highways
  • ArcGIS Desktop Standard: Requires Roads and Highways
  • ArcGIS Desktop Advanced: Requires Roads and Highways

Related topics

  • An overview of the Roads and Highways toolbox

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2017 Esri. | Privacy | Legal