获得 Business Analyst 许可后可用。
描述
Adds a new field at the specified level.
使用方法
Fields that are added will be based on a numeric field from the level below the territory level and will be calculated based on the type of statistic specified by the user.
The variable is added to any level above the base or alignment level [0].
All numeric fields are supported.
语法
AddLevelVariables(in_territory_solution, level, base_level, variables)
参数 | 说明 | 数据类型 |
in_territory_solution | The input territory solution. | Group Layer; Feature Dataset; String |
level | The level to which the calculated field will be added. | String |
base_level | The level below the territory level from which the attribute value will be added. | String |
variables [[statistic, statistic_field, field_name, field_alias_name],...] | The variables that will be added to the level.
| Value Table |
派生输出
名称 | 说明 | 数据类型 |
out_territory_solution | The updated territory solution. | Group Layer |
代码示例
The following Python window script demonstrates how to use the AddLevelVariables tool.
import arcpy
arcpy.td.AddLevelVariables("TD", "Territory[1]", "BaseLevel[0]", "populationtotals_totpop_cy SUM TotalPopulation 'Total Pop'")
环境
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst