ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Generate Routes

  • Résumé
  • Utilisation
  • Syntaxe
  • Exemple de code
  • Environnements
  • Informations de licence

Résumé

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

Utilisation

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

Syntaxe

arcpy.locref.GenerateRoutes(in_network)
ParamètreExplicationType de données
in_network

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

Feature Layer

Sortie dérivée

NomExplicationType de données
out_feature

The updated feature class.

Feature Class

Exemple de code

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)

Environnements

  • Espace de travail courant
  • Facteur de traitement parallèle
    Remarque :

    The default value for this environment, if left blank, is 100%. Any absolute value for the environment is always clamped between 0 and the number of logical cores in that machine.

Informations de licence

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

Rubriques connexes

  • An overview of the Location Referencing toolbox

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

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

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal