テリトリー ソリューションのインポート (テリトリー デザイン ツール)
サマリー
新しいテリトリー ソリューションを作成し、テーブルまたはレイヤーからテリトリー階層をインポートします。
使用法
パラメーター
|
ラベル
|
説明
|
データ タイプ
|
|
入力データ
|
インポートするレイヤーまたはレコード。
|
Table View
|
|
テリトリー ソリューションの名前
|
作成されるテリトリー ソリューションの名前。
|
String
|
|
レベル設定
|
テリトリー階層をインポートするためのレベル設定。
値テーブル列:
Level Name—The name of the level (required).
Default Territory Name—The prefix for the new territories that will, subsequently, be created at the level (optional).
ID Field—The field that contains IDs (unique IDs) for territories (required).
Name Field—The field that contains names for territories (optional).
Parent ID Field—The field that contains IDs of parent territories (optional).
Primary Feature Class—Specifies the class level that will be used for storing level attributes (optional).
Territory Boundaries—Level attributes will be stored using the boundaries of the territory solution.
Territory Centers—Level attributes will be stored using the boundary centers of the territory solution.
Base Boundaries—Level attributes will be stored using the boundaries of the base layer.
Base Centers—Level attributes will be stored using the boundary centers of the base layer.
|
Value Table
|
派生した出力
|
ラベル
|
説明
|
データ タイプ
|
|
出力テリトリー ソリューション
|
更新済みのテリトリー ソリューション。
|
Group Layer
|
arcpy.td.ImportTerritorySolution(in_data, solution_name, level_settings)
|
名前
|
説明
|
データ タイプ
|
|
in_data
|
インポートするレイヤーまたはレコード。
|
Table View
|
|
solution_name
|
作成されるテリトリー ソリューションの名前。
|
String
|
|
level_settings
[[level_name, territory_name_template, id_field, name_field, parent_id_field, primary_feature_class],...]
|
テリトリー階層をインポートするためのレベル設定。
値テーブル列:
Level Name—The name of the level (required).
Default Territory Name—The prefix for the new territories that will, subsequently, be created at the level (optional).
ID Field—The field that contains IDs (unique IDs) for territories (required).
Name Field—The field that contains names for territories (optional).
Parent ID Field—The field that contains IDs of parent territories (optional).
Primary Feature Class—Specifies the class level that will be used for storing level attributes (optional).
TERRITORY_BOUNDARIES—Level attributes will be stored using the boundaries of the territory solution.
TERRITORY_CENTERS—Level attributes will be stored using the boundary centers of the territory solution.
BASE_BOUNDARIES—Level attributes will be stored using the boundaries of the base layer.
BASE_CENTERS—Level attributes will be stored using the boundary centers of the base layer.
|
Value Table
|
派生した出力
|
名前
|
説明
|
データ タイプ
|
|
out_territory_solution
|
更新済みのテリトリー ソリューション。
|
Group Layer
|
コードのサンプル
ImportTerritorySolution の例 (Python ウィンドウ)
次の Python ウィンドウ スクリプトは、ImportTerritorySolution ツールの使用方法を示しています。
import arcpy
arcpy.td.ImportTerritorySolution("zips", "Territory Solution", "Base BaseName ID NAME TerritoryID BASE_BOUNDARIES;Territories Territory TerritoryID # # TERRITORY_BOUNDARIES")
環境
現在のワークスペース
ライセンス情報
- Basic: Business Analyst が必要
- Standard: Business Analyst が必要
- Advanced: Business Analyst が必要