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

Generate Routes

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

Resumen

Re-creates shapes and applies calibration changes for route features in an LRS Network.

Uso

  • Input the LRS Network whose features need to be regenerated or need calibration changes applied based on the route shape from the centerline feature class, and measure values from the calibration point feature class.

  • An LRS dataset is required to run this tool.

  • When conflict prevention is enabled for the tool, any events being generated by the tool will be locked.

    • While working in the default version, the locks acquired are released automatically when the tool completes.
    • While working in a child version, the locks acquired will remain in On Post status when the tool completes. The lock owner must post or delete the version to release the locks.
    • While working in a child version, if the execution of the tool is canceled by interruption, the locks are acquired and will remain in releasable status when the tool completes.

Sintaxis

arcpy.locref.GenerateRoutes(in_network)
ParámetroExplicaciónTipo de datos
in_network

The LRS Network for which route shapes will be regenerated and calibration changes will be applied.

Feature Layer

Salida derivada

NombreExplicaciónTipo de datos
out_feature

The updated feature class.

Feature Class

Muestra de código

GenerateRoutes example (Python window)

The following Python window script demonstrates how to use GenerateRoutes in immediate mode.

# tool variables
in_network = "MilePoint"

# set current workspace
arcpy.env.workspace = "C:/data/Outputs.gdb"

# execute the tool
arcpy.GenerateRoutes_locref(in_network)
GenerateRoutes example (stand-alone script)

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

# Name: GenerateRoutes.py
# Description: Re-creates shapes and calibration for routes features in a LRS Network
# Requirements: ArcGIS Pipeline Referencing or Roads and Highways

# Import arcpy module
import arcpy

# Check out any necessary licenses
arcpy.CheckOutExtension("Highways")

# Local variables
# input Network layer
in_network = "C:\\RoadsAndHighways\\Data\RH_DOT.gdb\\LRSN_County"

# Process: Generate Routes
arcpy.GenerateRoutes_locref(in_network)

Entornos

  • Espacio de trabajo actual

Información sobre licencias

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