摘要
Re-creates shapes and calibration for routes features in a LRS Network.
用法
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.
语法
GenerateRoutes_locref (in_network)
参数 | 说明 | 数据类型 |
in_network | The ALRS Network for which route shapes will be regenerated. | Feature Layer |
代码示例
Generate Routes 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)
Generate Routes Example (Stand-alone Python 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: Esri 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