配置 Utility Network 要素类 (位置参考)

摘要

配置 Utility Network 管道要素类以与线性参考系 (LRS) 搭配使用。

配置完成后,可以根据需要更新路径 ID 字段参数和测量列。

使用情况

参数

标注说明数据类型
Utility Network 要素图层

同时是 LRS 中心线要素的输入 Utility Network 要素。

Feature Layer
路径 ID 字段

要素类中将映射为 LRS 网络路径 ID 的字段。

Field
测量始于字段

中心线要素类的测量始于字段。

Field
测量止于字段

中心线要素类的测量止于字段。

Field

派生输出

标注说明数据类型
输出要素类

更新的 Utility Network 要素图层。

Feature Layer

arcpy.locref.ConfigureUtilityNetworkFeatureClass(in_feature_class, route_id_field, from_measure_field, to_measure_field)
名称说明数据类型
in_feature_class

同时是 LRS 中心线要素的输入 Utility Network 要素。

Feature Layer
route_id_field

要素类中将映射为 LRS 网络路径 ID 的字段。

Field
from_measure_field

中心线要素类的测量始于字段。

Field
to_measure_field

中心线要素类的测量止于字段。

Field

派生输出

名称说明数据类型
out_feature_class

更新的 Utility Network 要素图层。

Feature Layer

代码示例

ConfigureUtilityNetworkFeatureClass 示例 1(Python 窗口)

演示如何在 Python 窗口中使用 ConfigureUtilityNetworkFeatureClass 地理处理工具。

# Name: ConfigureUtilityNetworkFeatureClass_ex1.py
# Description: Configure a Utility Network pipeline feature class for use with a linear referencing system (LRS) in the Python window.
# Requires: ArcGIS Location Referencing

# Set current workspace
arcpy.env.workspace = "C:/Data/UN_LRconnection.sde"

# Tool variables
utility_Network_Feature = r"C:/Data/UN_LRconnection.sde/LRS/UNOWNER.UNData/UNOWNER.pipeline"
RouteID = "RouteID"
FromMeasure = "FromMeasure"
ToMeasure = "ToMeasure"

# Execute the tool
arcpy.locref.ConfigureUtilityNetworkFeatureClass(utility_Network_Feature, RouteID, FromMeasure, ToMeasure)
ConfigureUtilityNetworkFeatureClass 示例 2(独立脚本)

演示如何使用 ConfigureUtilityNetworkFeatureClass 工具作为独立 Python 脚本。

# Name: ConfigureUtilityNetworkFeatureClass_ex2.py
# Description: Configure a Utility Network pipeline feature class for use with a linear referencing system (LRS) in a stand-alone script.
# Requires: ArcGIS Location Referencing

# Import arcpy module
import arcpy

# Check out the license
arcpy.CheckOutExtension("LocationReferencing")

# Set current workspace
arcpy.env.workspace = "C:/Data/UN_LRconnection.sde"

#Tool variables
utility_Network_Feature = r"C:/Data/UN_LRconnection.sde/LRS/UNOWNER.UNData/UNOWNER.pipeline"
RouteID = "RouteID"
FromMeasure = "FromMeasure"
ToMeasure = "ToMeasure"

# Execute the tool
arcpy.locref.ConfigureUtilityNetworkFeatureClass(utility_Network_Feature, RouteID, FromMeasure, ToMeasure)

# Check in license
arcpy.CheckInExtension('LocationReferencing')

环境

此工具不使用任何地理处理环境。

许可信息

  • Basic: 需要 ArcGIS Location Referencing(ArcGIS Pipeline Referencing 或 ArcGIS Roads and Highways)
  • Standard: 需要 ArcGIS Location Referencing(ArcGIS Pipeline Referencing 或 ArcGIS Roads and Highways)
  • Advanced: 需要 ArcGIS Location Referencing(ArcGIS Pipeline Referencing 或 ArcGIS Roads and Highways)

相关主题