Solve Territories (Territory Design)

Доступно с лицензией Business Analyst.

Краткая информация

Creates and balances territories on the specified territory level provided that the balancing variables are set.

Использование

  • The number of territories must be specified manually for the User Defined option.

  • Calculation of the optimal number of territories requires that constraints be set. Constraints can be based on a numeric value or a distance.

Параметры

ПодписьОписаниеТип данных
Input Territory Solution

The territory solution that will be used to solve territories.

Group Layer; Feature Dataset; String
Level

The level that will be used to solve territories.

String
Number of Territories Method

Specifies the method that will be used to calculate the number of territories.

  • User DefinedThe number of territories will be provided by the user. This is the default.
  • OptimalThe number of territories will be calculated automatically.
String
Number of Territories
(Дополнительный)

The number of territories to be specified.

Long
Quality (%)
(Дополнительный)

An integer between 1 and 200 that determines the performance of a solve operation. A lower value will provide better performance but quality may be affected. The default value is 100.

Long

Производные выходные данные

ПодписьОписаниеТип данных
Updated Territory Solution

The updated territory solution.

Group Layer

arcpy.td.SolveTerritories(in_territory_solution, level, method, {number_territories}, {quality})
ИмяОписаниеТип данных
in_territory_solution

The territory solution that will be used to solve territories.

Group Layer; Feature Dataset; String
level

The level that will be used to solve territories.

String
method

Specifies the method that will be used when calculating the number of territories.

  • USER_DEFINEDThe number of territories will be provided by the user. This is the default.
  • OPTIMALThe number of territories will be calculated automatically.
String
number_territories
(Дополнительный)

The number of territories to be specified.

Long
quality
(Дополнительный)

An integer between 1 and 200 that determines the performance of a solve operation. A lower value will provide better performance but quality may be affected. The default value is 100.

Long

Производные выходные данные

ИмяОписаниеТип данных
out_territory_solution

The updated territory solution.

Group Layer

Пример кода

SolveTerritories example (Python window)

The following Python window script demonstrates how to use the SolveTerritories function.

import arcpy
arcpy.td.SolveTerritories("MyProject.gdb\Solution", "Territories[1]", "USER_DEFINED", 7, 100)

Параметры среды

Особые случаи

Информация о лицензиях

  • Basic: Обязательно Business Analyst
  • Standard: Обязательно Business Analyst
  • Advanced: Обязательно Business Analyst

Связанные разделы