Краткая информация
Re-creates shapes and applies calibration changes for route features in an LRS Network.
Использование
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.
Синтаксис
GenerateRoutes(in_network)
Параметр | Объяснение | Тип данных |
in_network | The LRS Network for which route shapes will be regenerated and calibration changes will be applied. | Feature Layer |
Производные выходные данные
Name | Объяснение | Тип данных |
out_feature | Updated feature class. | Feature Class |
Пример кода
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)
Параметры среды
Информация о лицензиях
- ArcGIS Desktop Basic: Требует Roads and Highways
- ArcGIS Desktop Standard: Требует Roads and Highways
- ArcGIS Desktop Advanced: Требует Roads and Highways