Location Referencing ライセンスで利用可能です。
サマリー
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_locref (in_route_features, {record_calibration_changes})
パラメーター | 説明 | データ タイプ |
in_route_features | The LRS Network for which route shapes will be regenerated and calibration changes will be applied. | Feature Layer |
record_calibration_changes (オプション) |
| Boolean |
派生した出力
名前 | 説明 | データ タイプ |
out_route_features | Updated route feature layer. | Feature Layer |
out_derived_route_features | The updated LRS Network to which route shapes have been generated and calibration changes have been applied. | Feature Layer |
out_details_file | A text file that details the routes that were updated in the LRS Network feature class. | Text File |
コードのサンプル
GenerateRoutes example 1 (Python window)
Demonstrates how to use GenerateRoutes in immediate mode.
# Import arcpy module
import arcpy
# Local variables
in_route_features = r'C:\Data\PipelineReferencing.gdb\LineNetwork'
record_calibration_changes = "NO_RECORD_CALIBRATION_CHANGES"
# Set current workspace
arcpy.env.workspace = "C:/Data/PipelineReferencing.gdb"
# Execute the tool
arcpy.GenerateRoutes_locref(in_route_features, record_calibration_changes)
GenerateRoutes example 2 (stand-alone script)
Demonstrates how to use GenerateRoutes in a stand-alone Python script.
# Name: GenerateRoutes_ex2.py
# Description: Recreates shapes and applies calibration changes for route features in a LRS Network.
# Requirements: ArcGIS Pipeline Referencing
# Import arcpy module
import arcpy
# Check out any necessary licenses
arcpy.CheckOutExtension("LocationReferencing")
# Local variables
in_route_features = r'C:\Data\PipelineReferencing.gdb\LineNetwork'
record_calibration_changes = "RECORD_CALIBRATION_CHANGES"
# Execute the tool
arcpy.GenerateRoutes_locref(in_route_features, record_calibration_changes)
環境
ライセンス情報
- ArcGIS Desktop Basic: 次のものが必要 ArcGIS Pipeline Referencing
- ArcGIS Desktop Standard: 次のものが必要 ArcGIS Pipeline Referencing
- ArcGIS Desktop Advanced: 次のものが必要 ArcGIS Pipeline Referencing