Importer une solution de sectorisation (Outils Conception de sectorisation)
Résumé
Crée une solution de sectorisation et importe la hiérarchie des secteurs d’une table ou d’une couche.
Utilisation
Paramètres
|
Etiqueter
|
Explication
|
Type de données
|
|
Données en entrée
|
Couche ou enregistrements à importer.
|
Table View
|
|
Nom de la solution de sectorisation
|
Nom de la solution de sectorisation à créer.
|
String
|
|
Paramètres de niveau
|
Paramètres de niveau pour l’importation de la hiérarchie des secteurs.
Colonnes de la table de valeurs :
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
|
Sortie dérivée
|
Etiqueter
|
Explication
|
Type de données
|
|
Solution de sectorisation en sortie
|
Solution de sectorisation mise à jour.
|
Group Layer
|
arcpy.td.ImportTerritorySolution(in_data, solution_name, level_settings)
|
Nom
|
Explication
|
Type de données
|
|
in_data
|
Couche ou enregistrements à importer.
|
Table View
|
|
solution_name
|
Nom de la solution de sectorisation à créer.
|
String
|
|
level_settings
[[level_name, territory_name_template, id_field, name_field, parent_id_field, primary_feature_class],...]
|
Paramètres de niveau pour l’importation de la hiérarchie des secteurs.
Colonnes de la table de valeurs :
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
|
Sortie dérivée
|
Nom
|
Explication
|
Type de données
|
|
out_territory_solution
|
Solution de sectorisation mise à jour.
|
Group Layer
|
Exemple de code
Exemple ImportTerritorySolution (fenêtre Python)
Le script de fenêtre Python ci-dessous illustre l’utilisation de l’outil ImportTerritorySolution.
import arcpy
arcpy.td.ImportTerritorySolution("zips", "Territory Solution", "Base BaseName ID NAME TerritoryID BASE_BOUNDARIES;Territories Territory TerritoryID # # TERRITORY_BOUNDARIES")
Environnements
Espace de travail courant
Informations de licence
- Basic: Nécessite Business Analyst
- Standard: Nécessite Business Analyst
- Advanced: Nécessite Business Analyst