派生メジャー フィールドの無効化 (Disable Derived Measure Fields) (Location Referencing ツール)
サマリー
派生ネットワークのルート ID、ルート名、およびメジャー フィールドを格納するフィールドを無効にします。
このツールを実行しても、派生メジャー フィールドは削除されず、派生メジャー フィールドの情報が Lrs_Metadata テーブルから削除されるだけです。
使用法
このツールは、空のイベント フィーチャクラスまたはレコードがすでに読み込まれているイベント フィーチャクラスに対して使用できます。
パラメーター
ラベル
説明
データ タイプ
LRS イベント フィーチャクラス
LRS に登録されている既存のイベント フィーチャクラスまたはフィーチャ レイヤー。
Feature Layer
派生した出力
ラベル
説明
データ タイプ
更新された入力フィーチャクラス
イベントの更新されたフィーチャ レイヤー。
Feature Layer
arcpy.locref.DisableDerivedMeasureFields(in_feature_class)
名前
説明
データ タイプ
in_feature_class
LRS に登録されている既存のイベント フィーチャクラスまたはフィーチャ レイヤー。
Feature Layer
派生した出力
名前
説明
データ タイプ
out_feature_class
イベントの更新されたフィーチャ レイヤー。
Feature Layer
コードのサンプル
DisableDerivedMeasureFields の例 1 (Python ウィンドウ)
次の Python ウィンドウ スクリプトは、イミディエイト モードで DisableDerivedMeasureFields ツールを使用する方法を示しています。
# Name: DisableDerivedMeasureFields_ex1.py
# Description: Disable fields that store the derived network route id, route name and measure fields.
# Requires: ArcGIS Location Referencing
# Tool variables
in_feature_class = r"C:\DisableDerivedMeasureFields\Py\APR.gdb\LRS\EventFeatureClass"
# Set current workspace
arcpy.env.workspace = r"C:\DisableDerivedMeasureFields\Py\APR.gdb"
# Run the tool
arcpy.locref.DisableDerivedMeasureFields(in_feature_class)
DisableDerivedMeasureFields の例 2 (スタンドアロン スクリプト)
次のスクリプトは、スタンドアロン Python スクリプトで DisableDerivedMeasureFields ツールを使用する方法を示しています。
# Name: DisableDerivedMeasureFields_ex2.py
# Description: Disable fields that store the derived network route id, route name and measure fields.
# Requires: ArcGIS Location Referencing
# Import arcpy module
import arcpy
# Local variables:
in_feature_class = r"C:\DisableDerivedMeasureFields\Py\APR.gdb\LRS\EventFeatureClass"
# Run the tool
arcpy.locref.DisableDerivedMeasureFields(in_feature_class)
環境
このツールは、ジオプロセシング環境を一切使用しません。
ライセンス情報
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) が必要