Generate Routes (Roads and Highways)
Resumen
Re-creates shapes and calibration for routes features in a LRS Network.
Uso
-
Input the LRS Network whose routes feature needs to be regenerated based on the route shape definition from centerline feature class and the measure values definition from the calibration point feature class.
Sintaxis
GenerateRoutes_roads (in_network)
Parámetro | Explicación | Tipo de datos |
in_network |
The ALRS Network for which route shapes will be regenerated. | Feature Layer |
Ejemplo de código
Generate Routes example (Python window)
The following Python window script demonstrates how to use GenerateRoutes function in immediate mode.
# tool variables
in_network="MilePoint"
# set current workspace
arcpy.env.workspace="C:/data/Outputs.gdb"
# execute the tool
GenerateRoutes_roads(in_network)
Generate Routes Example (Stand-alone Python script)
The following Python script demonstrates how to use GenerateRoutes in a stand-alone Python script.
# Name: GenerateRoutes_PyWin.py
# Description: Re-creates shapes and calibration for routes features in a LRS Network
# Requirements: Esri Roads and Highways solution
# 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_roads(in_network)
Entornos
Esta herramienta no utiliza ningún entorno de geoprocesamiento.
Temas relacionados
Información sobre licencias
ArcGIS for Desktop Basic: Requiere Roads and Highways
ArcGIS for Desktop Standard: Requiere Roads and Highways
ArcGIS for Desktop Advanced: Requiere Roads and Highways
4/26/2014