Доступно с лицензией Business Analyst.
Сводка
Creates a new Territory Solution with one empty territory level.
Использование
The Polygon and Point layers to be used as an Alignment Layer for the new Territory Solution.
A String, Integer, SmallInteger, Double, Single, Date, OID, GlobalID or GUID field of Alignment Layer can be used as the Display Field. The default value is the Alignment Layer’s display field. If the Alignment Layer’s display field is not defined the first suitable field will be applied.
If unspecified, the default Territory Level Name will be read from the ATDConfig.xml file.
By default, the Territory Solution Location is under the "Territories" folder in the current BA project.
A default Territory Solution Name is generated if not specified.
Синтаксис
arcpy.td.CreateTerritorySolution_TD(in_alignment_layer, {in_display_field}, {in_level_name}, {in_territory_solution_location}, {in_territory_solution_name})| Параметр | Объяснение | Тип данных |
in_alignment_layer | The Alignment Layer for the new Territory Solution. | Feature Layer |
in_display_field (Дополнительный) | The Display Field for the Territory Solution. | Field |
in_level_name (Дополнительный) | The name of the first territory level. | String |
in_territory_solution_location (Дополнительный) | The location of the Territory Solution. | String |
in_territory_solution_name (Дополнительный) | The name of the Territory Solution. | String |
Пример кода
CreateTerritorySolution example (Python window)
The following Python window script demonstrates how to use the tool in immediate mode.
import arcgisscripting
gp = arcgisscripting.create()
gp.CreateTerritorySolution_TD("ZIPCodes_zp", "NAME", "Territories", "C:/BA Output/Project/Default Project/Territories/", "new layer")
CreateTerritorySolution example2 (stand-alone script)
The following stand-alone script demonstrates how to use the tool.
# Import system modules
import arcgisscripting
gp = arcgisscripting.create()
# Set local variables
alignmentLayer = "ZIPCodes_zp"
displayField = "NAME"
levelName = "Territories"
solutionLocation = "C:/BA Output/Project/Default Project/Territories/"
solutionName = "new layer"
# Execute tool
gp.CreateTerritorySolution_TD(alignmentLayer, displayField, levelName, solutionLocation, solutionName)
Параметры среды
Этот инструмент не использует параметры среды геообработки
Информация о лицензиях
- Basic: Требуется Business Analyst
- Standard: Требуется Business Analyst
- Advanced: Требуется Business Analyst