arcpy.un.MigrateToUtilityNetwork(output_folder, service_territory_feature_class, {utility_network_name}, {dataset_name}, {output_name}, {un_mapping}, {domain_networks}, {in_standalone_classes}, {load_data}, {merge_fields}, {include_related}, {include_attachments}, utility_network_version)
|
名前
|
説明
|
データ タイプ
|
|
output_folder
|
output_name パラメーターで指定した出力フォルダーとモバイル ジオデータベースが格納されるフォルダーの場所。
|
Folder
|
|
service_territory_feature_class
|
ユーティリティー ネットワークの地理的範囲を作成するために使用するポリゴン フィーチャクラス。 ユーティリティー ネットワーク フィーチャは、この範囲外には作成できません。
|
Feature Set
|
|
utility_network_name
(オプション)
|
ユーティリティー ネットワークの名前。 デフォルトは Network です。
|
String
|
|
dataset_name
(オプション)
|
ユーティリティー ネットワークが格納されるフィーチャ データセットの名前。 デフォルトは UtilityNetwork です。
|
String
|
|
output_name
(オプション)
|
出力フォルダーとモバイル ジオデータベースの名前。 デフォルトは MigrationDatabase です。
|
String
|
|
un_mapping
[un_mapping,...]
(オプション)
|
出力ジオデータベース内のユーティリティー ネットワークのアセット グループとアセット タイプを生成およびマッピングするために使用されるフィーチャクラスと詳細のリスト。
値テーブル列:
Source Class—The source feature class that will be migrated to a utility network.
Target Class—The target domain network class for each Source Class value.
Asset Group—The name of the asset group created in the target domain network class. By default, this is assigned the name from Source Class.
Asset Type—The subtype or field with a coded value domain that will be used to define the asset types for the asset group created in Target Class. If the data contains subtypes, or another field containing a coded value domain that can be used to meaningfully identify different types of equipment in the class, this can be specified as the field to be used for the asset type in Target Class. When a subtype field is specified for Asset Type, existing codes are maintained if all codes are between 1 and 1023. If a code falls outside this range, all asset types will be created using the subtype descriptions and an automatically incrementing number starting at 1.
Is Controller—Specify whether the feature classes can act as sources or sinks in the domain network. This enables features belonging to this asset group to act as subnetwork controllers in the output domain network.
CONTROLLER—The specified asset group and asset types are assigned the subnetwork controller network category and are eligible to define the origin of a subnetwork. If the source feature class participates in a geometric network, the values from the Ancillary Role field are used to determine which features for the asset group and asset type can serve as subnetwork controllers in the utility network. These features are output to the folder specified for the Output Location parameter in a controllers.csv file for later import into the output utility network. When no Ancillary Role field is present, subnetwork controllers can be set manually for the specified asset types in the output utility network.
NO_CONTROLLER—The specified asset group and asset types are not assigned the subnetwork controller network category and are not eligible to participate as subnetwork controllers in the domain network.
|
Value Table
|
|
domain_networks
[domain_networks,...]
(オプション)
|
出力ユーティリティー ネットワークで定義されるドメイン ネットワークの名前とプロパティ。
値テーブル列:
Name—The name of the domain network. This describes the resource that the domain network manages and will prefix all network classes added to the domain network.
Subnetwork Controller Type—The subnetwork controller type determines how the network resource flows through all subnetworks of a domain network. Specify whether resources originate from a point in the network (source) or flow toward a point in the network (sink).
SOURCE—If the domain network is defined with the source subnetwork controller type, a resource can only flow away from or exit subnetwork controllers, not toward or into them.
SINK—If the domain network is defined with a sink subnetwork controller type, a resource can only flow toward and enter subnetwork controllers, not away from or exit them.
Tier Definition—Specify the tier definition type for the domain network, either partitioned or hierarchical. A tier definition denotes the organization of the tiers relative to the rest of the network.
PARTITIONED—Features in a domain network with a partitioned tier definition are independent and can only exist in one tier. Features can exist in one or multiple subnetworks. The relationship between tiers in partitioned domain networks is ordered and linear. For example, a transmission tier delivers the resource over a long distance, and a distribution tier serves the resource to the customer.
HIERARCHICAL—Features in a domain network with a hierarchical tier definition can be modeled in multiple types of subnetworks. For example, pressure zones and isolation zones can be defined in two tiers within a tier group. A gas or water feature can be part of both the pressure and isolation tiers.
|
Value Table
|
|
in_standalone_classes
[in_standalone_classes,...]
(オプション)
|
ユーティリティー ネットワークに属していないスタンドアロン クラスがコピーされ、出力ジオデータベースに配置されます。
|
Table
|
|
load_data
(オプション)
|
ソース クラスのデータを出力ユーティリティー ネットワークに読み込むか、出力ユーティリティー ネットワークでソース クラスのスキーマの更新のみを行うかを指定します。
|
Boolean
|
|
merge_fields
(オプション)
|
ソース クラスのフィールドをマージして、出力ユーティリティー ネットワークのフィールドと結合するかどうかを指定します。
|
Boolean
|
|
include_related
(オプション)
|
コピー対象として指定したソース クラスとスタンドアロン クラスの関連クラスを出力ユーティリティー ネットワークに含めるかどうかを指定します。
|
Boolean
|
|
include_attachments
(オプション)
|
付属物ファイル テーブルを作成し、ソース クラスの付属物ファイルを出力ジオデータベースに含めるかどうかを指定します。
|
Boolean
|
|
utility_network_version
|
作成されるユーティリティー ネットワークのバージョンを指定します。
CURRENT—現在の ArcGIS Pro リリースと互換性のあるユーティリティー ネットワークの最新バージョンが作成されます。 これがデフォルトです。
VERSION_7—バージョン 7 のユーティリティー ネットワークが作成されます。
VERSION_6—バージョン 6 のユーティリティー ネットワークが作成されます。
VERSION_5—バージョン 5 のユーティリティー ネットワークが作成されます。
|
String
|
派生した出力
|
名前
|
説明
|
データ タイプ
|
|
out_utility_network
|
出力ユーティリティー ネットワーク。
|
Utility Network
|
|
out_controller
|
出力サブネットワーク コントローラー。
|
File
|
|
out_layer_file
|
ユーティリティー ネットワークによって制御される各クラスのサブタイプ グループ レイヤーが格納される出力レイヤー ファイル。
|
File
|
|
out_loading_workspace
|
ソース データを出力ユーティリティー ネットワークにマッピングするデータ読み込みワークスペース。 これを使用することで、別のモバイル ジオデータベースを作成することなく、出力ユーティリティー ネットワークにデータを再読み込みすることができます。
|
File
|
コードのサンプル
MigrateToUtilityNetwork の例 (Python ウィンドウ)
MigrateToUtilityNetwork 関数を使用して、LocalGovernment.gdb 内の既存のジオメトリック ネットワーク内のソース クラスから、ソースベースの階層型水道ドメイン ネットワークを作成します。 WaterLine などの各種フィーチャクラスにアセット タイプが定義されており、wNetworkStructure アセット グループのアセット タイプがコントローラーとして指定されています。
arcpy.un.MigrateToUtilityNetwork(r"C:\temp", r"C:\temp\LocalGovernment.gdb\wServiceBoundary", "Network", "UtilityNetwork", "MigrationDatabase", r"C:\temp\LocalGovernment.gdb\WaterDistribution\wConstructionLine StructureLine wConstructionLine # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wControlValve WaterDevice wControlValve # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wCasing StructureLine wCasing # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wCurbStopValve WaterDevice wCurbStopValve # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wFitting WaterDevice wFitting FITTINGTYPE #;C:\temp\LocalGovernment.gdb\WaterDistribution\wHydrant WaterDevice wHydrant # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wLateralLine WaterLine wLateralLine LINETYPE #;C:\temp\LocalGovernment.gdb\WaterDistribution\wMain WaterLine wMain # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wNetworkStructure WaterDevice wNetworkStructure STRUCTTYPE true;C:\temp\LocalGovernment.gdb\WaterDistribution\wPump WaterDevice wPump # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wSamplingStation WaterJunction wSamplingStation # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wServiceConnection WaterDevice wServiceConnection SERVICETYPE #;C:\temp\LocalGovernment.gdb\WaterDistribution\wStructure StructureBoundary wStructure STRUCTTYPE #;C:\temp\LocalGovernment.gdb\WaterDistribution\wSystemValve WaterDevice wSystemValve # #;C:\temp\LocalGovernment.gdb\WaterDistribution\wTestStation WaterDevice wTestStation # #", "Water SOURCE HIERARCHICAL", r"C:\temp\LocalGovernment.gdb\WaterDistribution\wAbandonedLine;C:\temp\LocalGovernment.gdb\WaterDistribution\wAbandonedPoint;C:\temp\LocalGovernment.gdb\WaterDistribution\wConstructionLine;C:\temp\LocalGovernment.gdb\WaterDistribution\wElevationPt;C:\temp\LocalGovernment.gdb\WaterDistribution\wPressureZone", "LOAD", "MERGE", "INCLUDE", "DO_NOT_INCLUDE", "VERSION_7")