サマリー
Populates an existing file or multiuser geodatabase with all feature datasets, feature classes, tables, relationship classes, and domains needed for the Utility and Pipeline Data Model (UPDM) and creates an ALRS with events registered to the chosen network.
使用法
The XY and Z tolerance should match that of source data that will be loaded into the networks and events.
構文
CreateUPDMGeodatabase_locref (output_gdb, spatial_reference, {measure_unit}, {xy_tolerance}, {z_tolerance}, event_registration_network, {register_p_pipesystem})
パラメーター | 説明 | データ タイプ |
output_gdb | The file or multiuser geodatabase where the UPDM ALRS will be created. | Workspace |
spatial_reference | The spatial reference for feature datasets and feature classes within the geodatabase. | Spatial Reference |
measure_unit (オプション) | The unit of measure for the M values. This is the unit of measure that will be used for the LRS Networks created by the tool.
| String |
xy_tolerance (オプション) | The XY tolerance for feature datasets and feature classes within the geodatabase. XY resolution will be one-tenth the XY tolerance. M tolerance will be equal to the XY tolerance converted to the selected M unit of measure. M resolution will be one-tenth the M tolerance. | Double |
z_tolerance (オプション) | The Z tolerance for feature datasets and feature classes within the geodatabase. Z resolution will be one-tenth the Z tolerance. | Double |
event_registration_network | The network to which events will be registered. Choose Engineering if your events will be registered to the Engineering network and will support lines and events that span routes. Choose Continuous if your events will be registered to the Continuous network and linear events do not need to span routes.
| String |
register_p_pipesystem (オプション) | Determines whether all event feature classes in the network will be updated.
| Boolean |
コードのサンプル
CreateUPDMGeodatabase example 1 (Python window)
The following Python window script demonstrates how to use CreateUPDMGeodatabase in immediate mode.
# tool variables
output_gdb = "C:/data/UPDM.gdb"
spatial_reference = "NAD 1983 UTM Zone 17N"
measure_unit = "Miles"
xy_tolerance = 0.001
z_tolerance = 0.001
event_measure_storage = "Continuous"
register_p_pipesystem = "True"
# set current workspace
arcpy.env.workspace="C:/data/UPDM.gdb"
# execute the tool
arcpy.CreateUPDMGeodatabase_locref(output_gdb, spatial_reference, measure_unit, xy_tolerance, z_tolerance, event_measure_storage, register_p_pipesystem)
CreateUPDMGeodatabase example 2 (stand-alone script)
The following Python script demonstrates how to use CreateUPDMGeodatabase in a stand-alone Python script.
# Name: CreateUPDMGeodatabase_ex2.py
# Description: Populates an existing file or multiuser geodatabase with all feature datasets, feature classes, tables, relationship classes, and domains needed for the Utility and Pipeline Data Model (UPDM) and creates an ALRS with events registered to the chosen network.
# Requires: ArcGIS Pipeline Referencing
# Import arcpy module
import arcpy
# Check out any necessary licenses
arcpy.CheckOutExtension("LocationReferencing")
# Local Variables
output_gdb = r"C:\data\UPDM.gdb"
spatial_reference = "NAD83 Albers Equal Area, 48 States, Panhandle, US Foot"
measure_unit = "Feet"
xy_tolerance = 0.01
z_tolerance = 0.01
event_measure_storage = "Engineering"
register_p_pipesystem = "False"
# Process: Create UPDM geodatabase
arcpy.CreateUPDMGeodatabase_locref(outputgdb, spatialreference, measure_unit, xy_tolerance, z_tolerance, event_measure_storage, register_p_pipesystem)
環境
このツールは、ジオプロセシング環境を使用しません。
ライセンス情報
- ArcGIS Desktop Basic: いいえ
- ArcGIS Desktop Standard: 次のものが必要 ArcGIS Pipeline Referencing
- ArcGIS Desktop Advanced: 次のものが必要 ArcGIS Pipeline Referencing