LRS の作成 (Create LRS) (Location Referencing)

サマリー

指定したワークスペースに ArcGIS Location Referencing リニア リファレンス システム (LRS) と最小スキーマ アイテムを作成します。

使用法

  • 作成される最小スキーマ アイテムは、中心線、中心線シーケンス、キャリブレーション ポイント、およびレッドライン フィーチャクラスです。

  • LRS、中心線、キャリブレーション ポイント、レッドライン、および中心線シーケンスの名前は、ジオデータベース内で一意である必要があり、すでに存在するものであってはなりません。

  • 空間参照、許容値、および座標精度の入力がすべての出力フィーチャクラスに適用されます。

  • 入力位置がフィーチャ データセットの場合、そのフィーチャ データセットの空間参照、許容値、および座標精度は、ツールの入力のものと一致している必要があります。

  • XY および Z 許容値は XY および Z 座標精度の 2 倍以上の値でなければなりません。

パラメーター

ラベル説明データ タイプ
入力位置

LRS と最小スキーマ アイテムが作成されるファイルまたはエンタープライズ ジオデータベース。

Workspace; Feature Dataset
LRS 名

出力 LRS の名前。

String
中心線フィーチャクラス名

出力中心線フィーチャクラスの名前。

String
キャリブレーション ポイント フィーチャクラス名

出力キャリブレーション ポイント フィーチャクラスの名前。

String
レッドライン フィーチャクラス名

出力レッドライン フィーチャクラスの名前。

String
中心線シーケンス テーブル名

出力中心線シーケンス テーブルの名前。

String
空間参照

出力フィーチャクラスの空間参照。 Python スクリプトを使用する場合、空間参照の Well Known ID (WKID) を指定できます。

Spatial Reference
XY 許容値
(オプション)

出力フィーチャクラスの XY 許容値。

Linear Unit
Z 許容値
(オプション)

出力フィーチャクラスの Z 許容値。

Linear Unit
XY 座標精度
(オプション)

出力フィーチャクラスの XY 座標精度。

Linear Unit
Z 座標精度
(オプション)

出力フィーチャクラスの Z 座標精度。

Linear Unit

派生した出力

ラベル説明データ タイプ
更新された入力位置

更新された LRS ワークスペース。

Workspace; Feature Dataset
出力中心線フィーチャクラス

更新された中心線フィーチャクラス。

Feature Class
出力キャリブレーション ポイント フィーチャクラス

更新されたキャリブレーション ポイント フィーチャクラス。

Feature Class
出力レッドライン フィーチャクラス

更新されたレッドライン フィーチャクラス。

Feature Class
出力中心線シーケンス テーブル

更新された中心線シーケンス テーブル。

Table

arcpy.locref.CreateLRS(in_workspace, lrs_name, centerline_feature_class_name, calibration_point_feature_class_name, redline_feature_class_name, centerline_sequence_table_name, spatial_reference, {xy_tolerance}, {z_tolerance}, {xy_resolution}, {z_resolution})
名前説明データ タイプ
in_workspace

LRS と最小スキーマ アイテムが作成されるファイルまたはエンタープライズ ジオデータベース。

Workspace; Feature Dataset
lrs_name

出力 LRS の名前。

String
centerline_feature_class_name

出力中心線フィーチャクラスの名前。

String
calibration_point_feature_class_name

出力キャリブレーション ポイント フィーチャクラスの名前。

String
redline_feature_class_name

出力レッドライン フィーチャクラスの名前。

String
centerline_sequence_table_name

出力中心線シーケンス テーブルの名前。

String
spatial_reference

出力フィーチャクラスの空間参照。 Python スクリプトを使用する場合、空間参照の Well Known ID (WKID) を指定できます。

Spatial Reference
xy_tolerance
(オプション)

出力フィーチャクラスの XY 許容値。

Linear Unit
z_tolerance
(オプション)

出力フィーチャクラスの Z 許容値。

Linear Unit
xy_resolution
(オプション)

出力フィーチャクラスの XY 座標精度。

Linear Unit
z_resolution
(オプション)

出力フィーチャクラスの Z 座標精度。

Linear Unit

派生した出力

名前説明データ タイプ
out_workspace

更新された LRS ワークスペース。

Workspace; Feature Dataset
out_centerline_feature_class

更新された中心線フィーチャクラス。

Feature Class
out_calibration_point_feature_class

更新されたキャリブレーション ポイント フィーチャクラス。

Feature Class
out_redline_feature_class

更新されたレッドライン フィーチャクラス。

Feature Class
out_centerline_sequence_table

更新された中心線シーケンス テーブル。

Table

コードのサンプル

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

Python ウィンドウで CreateLRS 関数を使用します。

# Name: Create_LRS_ex1.py
# Description: Create an LRS and minimum schema items (Centerline, Centerline Sequence, Calibration Point, Redline).
# Requires: ArcGIS Location Referencing

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

# Tool variables
in_workspace = r"C:/Data/PipelineData.gdb/"
lrs_name = "LRS"
centerline_feature_class_name = "Centerline"
calibration_point_feature_class_name = "Calibration_Point"
redline_feature_class_name = "Redline"
centerline_sequence_table_name = "Centerline_Sequence"
spatial_reference = "26111"
xy_tolerance = "0.01 Meters"
z_tolerance = "0.01 Meters"
xy_resolution = "0.001 Meters"
z_resolution = "0.001 Meters"

# Set current workspace
arcpy.env.workspace = "C:/Data/PipelineData.gdb"

# execute the tool
arcpy.locref.CreateLRS(in_workspace, lrs_name, centerline_feature_class_name, calibration_point_feature_class_name,
                       redline_feature_class_name, centerline_sequence_table_name, spatial_reference, xy_tolerance,
                       z_tolerance, xy_resolution, z_resolution)

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

スタンドアロン Python スクリプトで CreateLRS 関数を使用します。

# Name: Create_LRS_ex2.py
# Description: Create an LRS and minimum schema items (Centerline, Centerline Sequence, Calibration Point, Redline).
# Requires: ArcGIS Location Referencing

# Import arcpy module
import arcpy

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

# Local Variables
in_workspace = r"C:\Data\PipelineData.gdb"
lrs_name = "LRS"
centerline_feature_class_name = "Centerline"
calibration_point_feature_class_name = "CalibrationPoint"
redline_feature_class_name = "Redline"
centerline_sequence_table_name = "CenterlineSequence"
spatial_reference = "NAD83 Albers Equal Area, 48 States, Panhandle, US Foot"
xy_tolerance = "0.001 Feet"
z_tolerance = "0.001 Feet"
xy_resolution = "0.0001 Feet"
z_resolution = "0.0001 Feet"

arcpy.locref.CreateLRS(in_workspace, lrs_name, centerline_feature_class_name, calibration_point_feature_class_name,
                       redline_feature_class_name, centerline_sequence_table_name, spatial_reference, xy_tolerance,
                       z_tolerance, xy_resolution, z_resolution)

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

関連トピック