対象フィールドの有効化 (Enable Referent Fields) (Location Referencing)

サマリー

対象フィールドを有効化または変更して、登録済みの LRS イベントの対象情報を管理できるようにします。

イベントの対象フィールドの詳細

使用法

  • このツールでは、既存のフィールドを対象フィールドとして登録できるようにすることで、対象フィールドを有効にします。

  • 対象フィールドがすでに有効になっている場合、このツールはデフォルトで既存のフィールドを取り込んで変更できるようにします。

  • 対象フィールドを有効化または変更しても、対象フィールド内にあるデータの整合チェックと更新は行われません。

  • 対象フィールドを無効にするには、[対象フィールドの無効化 (Disable Referent Fields)] ツールを使用します。

パラメーター

ラベル説明データ タイプ
イベント フィーチャクラス

LRS イベントに使用されるフィーチャクラス。

Feature Layer
対象メソッド フィールド
(オプション)

始点対象メソッド フィールド。

Field
対象ロケーション フィールド
(オプション)

始点対象ロケーション フィールド。

Field
対象オフセット フィールド
(オプション)

始点対象オフセット フィールド。

Field
終点対象メソッド フィールド
(オプション)

終点対象メソッド フィールド。

Field
終点対象ロケーション フィールド
(オプション)

終点対象ロケーション フィールド。

Field
終点対象オフセット フィールド
(オプション)

終点対象オフセット フィールド。

Field
オフセットの単位
(オプション)

使用するオフセットの単位を指定します。

  • マイル (米国測量)計測単位はマイルです。 これがデフォルトです。
  • インチ (米国測量)計測単位はインチです。
  • フィート (米国測量)計測単位はフィートです。
  • ヤード (米国測量)計測単位はヤードです。
  • 海里 (米国測量)計測単位は海里です。
  • フィート (国際)計測単位は国際フィートです。
  • ミリメートル計測単位はミリメートルです。
  • センチメートル計測単位はセンチメートルです。
  • メートル計測単位はメートルです。
  • キロメートル計測単位はキロメートルです。
  • デシメートル計測単位はデシメートルです。
String

派生した出力

ラベル説明データ タイプ
出力イベント フィーチャクラス

更新されたイベント フィーチャ レイヤー。

Feature Layer

arcpy.locref.EnableReferentFields(in_feature_class, {from_referent_method_field}, {from_referent_location_field}, {from_referent_offset_field}, {to_referent_method_field}, {to_referent_location_field}, {to_referent_offset_field}, {offset_units})
名前説明データ タイプ
in_feature_class

LRS イベントに使用されるフィーチャクラス。

Feature Layer
from_referent_method_field
(オプション)

始点対象メソッド フィールド。

Field
from_referent_location_field
(オプション)

始点対象ロケーション フィールド。

Field
from_referent_offset_field
(オプション)

始点対象オフセット フィールド。

Field
to_referent_method_field
(オプション)

終点対象メソッド フィールド。

Field
to_referent_location_field
(オプション)

終点対象ロケーション フィールド。

Field
to_referent_offset_field
(オプション)

終点対象オフセット フィールド。

Field
offset_units
(オプション)

使用するオフセットの単位を指定します。

  • MILES計測単位はマイルです。 これがデフォルトです。
  • INCHES計測単位はインチです。
  • FEET計測単位はフィートです。
  • YARDS計測単位はヤードです。
  • NAUTICAL_MILES計測単位は海里です。
  • INTFEET計測単位は国際フィートです。
  • MILLIMETERS計測単位はミリメートルです。
  • CENTIMETERS計測単位はセンチメートルです。
  • METERS計測単位はメートルです。
  • KILOMETERS計測単位はキロメートルです。
  • DECIMETERS計測単位はデシメートルです。
String

派生した出力

名前説明データ タイプ
out_feature_class

更新されたイベント フィーチャ レイヤー。

Feature Layer

コードのサンプル

EnableReferentFields の例 1 (Python ウィンドウ)

次の Python ウィンドウ スクリプトは、EnableReferentFields 関数をイミディエイト モードで使用して、既存の LRS イベントの対象フィールドを有効にする方法を示しています。

# Name: Enable_Referent_Fields_ex1.py
# Description: Enable referent fields for an existing LRS Event that already has referent fields configured.
# Requires: ArcGIS Location Referencing

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

# Local variables:
inputEventFC = r"c:\EnableReferent\Py\EnableReferent.gdb\LRS"
fromReferentMethodField = 'FromRefMethod'
fromReferentLocationField = 'FromRefLocation'
fromReferentOffsetField = 'FromRefOffset'
toReferentMethodField = 'ToRefMethod'
toReferentLocationField = 'ToRefLocation'
toReferentOffsetField = 'ToRefOffset'
offsetUnit = 'FEET'

# Execute the tool
arcpy.locref.EnableReferentFields(inputEventFC, fromReferentMethodField, fromReferentLocationField,
                                  fromReferentOffsetField, toReferentMethodField, toReferentLocationField,
                                  toReferentOffsetField, offsetUnit)

# Check in license
arcpy.CheckInExtension('LocationReferencing')
EnableReferentFields の例 2 (スタンドアロン スクリプト)

次のスタンドアロン Python スクリプトは、EnableReferentFields 関数を使用して、既存の LRS イベントの対象フィールドを有効にする方法を示しています。

# Name: Enable_Referent_Fields_ex2.py
# Description: Enables referent fields for an existing LRS Event.
# Requires: ArcGIS Pipeline Referencing

# Import arcpy module
import arcpy

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

# Local variables
inputEventFC = "c:\EnableReferent\Py\EnableReferent.gdb\LRS"
fromReferentMethodField = 'FromRefMethod'
fromReferentLocationField = 'FromRefLocation'
fromReferentOffsetField = 'FromRefOffset'
toReferentMethodField = 'ToRefMethod'
toReferentLocationField = 'ToRefLocation'
toReferentOffsetField = 'ToRefOffset'
offsetUnit = 'FEET'

# execute the tool
arcpy.locref.EnableReferentFields(inputEventFC, fromReferentMethodField, fromReferentLocationField,
                                  fromReferentOffsetField, toReferentMethodField, toReferentLocationField,
                                  toReferentOffsetField, offsetUnit)

# Check in license
arcpy.CheckInExtension('LocationReferencing')
EnableReferentFields の例 3 (スタンドアロン スクリプト)

次のスタンドアロン Python スクリプトは、EnableReferentFields 関数を使用して、対象フィールドがすでに構成されている既存の LRS イベントの対象フィールドを変更する方法を示しています。

# Name: Enable_Referent_Fields_ex3.py
# Description: Modifies  referent fields for an existing LRS Event that already has referent fields configured.
# Requires: ArcGIS Location Referencing

# Import arcpy module
import arcpy

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

# Local variables:
inputEventFC = r"c:\EnableReferent\Py\EnableReferent.gdb\LRS"
toReferentMethodField = 'ToRefMethod2'
toReferentLocationField = 'ToRefLocation2'
toReferentOffsetField = 'ToRefOffset2'

# Execute the tool
arcpy.locref.EnableReferentFields(inputEventFC, '' , '' , '' , toReferentMethodField, toReferentLocationField, toReferentOffsetField)

# 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)

関連トピック