Gebietsplanung importieren (Territory Design Tools)
Zusammenfassung
Dient zum Erstellen einer neuen Gebietsplanung und zum Importieren der Gebietshierarchie aus einer Tabelle oder einem Layer.
Verwendung
Die Eingabedaten sollten eine hierarchische Struktur haben.
Wenn Sie mehr als eine Ebene angeben, wird eine Hierarchie erstellt.
Parameter
|
Beschriftung
|
Erläuterung
|
Datentyp
|
|
Eingabedaten
|
Der Layer oder die Datensätze, die importiert werden sollen.
|
Table View
|
|
Name der Gebietsplanung
|
Der Name der zu erstellenden Gebietsplanung.
|
String
|
|
Ebenen-Einstellungen
|
Die Ebeneneinstellungen zum Importieren der Gebietshierarchie.
Spalten der Wertetabelle:
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
|
Abgeleitete Ausgabe
|
Beschriftung
|
Erläuterung
|
Datentyp
|
|
Ausgabe-Gebietsplanung
|
Die aktualisierte Gebietsplanung
|
Group Layer
|
arcpy.td.ImportTerritorySolution(in_data, solution_name, level_settings)
|
Name
|
Erläuterung
|
Datentyp
|
|
in_data
|
Der Layer oder die Datensätze, die importiert werden sollen.
|
Table View
|
|
solution_name
|
Der Name der zu erstellenden Gebietsplanung.
|
String
|
|
level_settings
[[level_name, territory_name_template, id_field, name_field, parent_id_field, primary_feature_class],...]
|
Die Ebeneneinstellungen zum Importieren der Gebietshierarchie.
Spalten der Wertetabelle:
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
|
Abgeleitete Ausgabe
|
Name
|
Erläuterung
|
Datentyp
|
|
out_territory_solution
|
Die aktualisierte Gebietsplanung
|
Group Layer
|
Codebeispiel
ImportTerritorySolution: Beispiel (Python-Fenster)
Das folgende Skript veranschaulicht die Verwendung des Werkzeugs ImportTerritorySolution im Python-Fenster.
import arcpy
arcpy.td.ImportTerritorySolution("zips", "Territory Solution", "Base BaseName ID NAME TerritoryID BASE_BOUNDARIES;Territories Territory TerritoryID # # TERRITORY_BOUNDARIES")
Umgebungen
Aktueller Workspace
Lizenzierungsinformationen
- Basic: Erfordert Business Analyst
- Standard: Erfordert Business Analyst
- Advanced: Erfordert Business Analyst