获得 Business Analyst 许可后可用。
描述
Sets variables for adding constraints when solving the territory solution.
使用方法
Only variables that have been added to the level will be available.
Territories are constrained by Minimum, Maximum, or Ideal Value.
Set the Weight parameter to 100 if there is only one variable to be used for constraints.
The Weight parameter will be set if there are multiple variables.
The Maximum and Minimum parameter values are hard constraints. Territories will not exceed or be below the specified values.
The Ideal Value parameter is a soft constraint. Territories can exceed or be below the specified value.
语法
SetTerritoryAttributeConstraints(in_territory_solution, level, {constraints})
参数 | 说明 | 数据类型 |
in_territory_solution | The Territory Design solution layer to be used in the analysis | Group Layer; Feature Dataset; String |
level | The level to which the constraints will be applied. | String |
constraints [[variable, minimum, maximum, ideal_value, weight],...] (可选) | The variables that will be used for constraining the territory solution.
| Value Table |
派生输出
名称 | 说明 | 数据类型 |
out_territory_solution | The updated territory solution. | Group Layer |
代码示例
The following Python window script demonstrates how to use the SetTerritoryAttributeConstraints tool.
import arcpy
arcpy.td.SetTerritoryAttributeConstraints("TerritorySolution", "Territories[1]", "populationtotals_totpop_cy 10000 100000 # 100")
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst