Доступно с лицензией Business Analyst.
Сводка
Creates a new territory solution and imports the territories hierarchy from a table or a layer.
Использование
The input data should have a hierarchical structure.
Specifying more than a single level will create a hierarchy.
Синтаксис
arcpy.td.ImportTerritorySolution(in_data, solution_name, level_settings)
Parameter | Объяснение | Тип данных |
in_data | The layer or records to be imported. | Table View |
solution_name | The name of the territory solution to be created. | String |
level_settings [[level_name, territory_name_template, id_field, name_field, parent_id_field, primary_feature_class],...] | The level settings for importing the territories hierarchy.
| Value Table |
Производные выходные данные
Name | Объяснение | Тип данных |
out_territory_solution | The updated territory solution. | Group Layer |
Пример кода
The following Python window script demonstrates how to use the ImportTerritorySolution tool.
import arcpy
arcpy.td.ImportTerritorySolution("zips", "Territory Solution", "Base BaseName ID NAME TerritoryID BASE_BOUNDARIES;Territories Territory TerritoryID # # TERRITORY_BOUNDARIES")
Environments
Информация о лицензиях
- Basic: Требуется Business Analyst
- Standard: Требуется Business Analyst
- Advanced: Требуется Business Analyst