获得 Business Analyst 许可后可用。
描述
Adds records (features) or updates existing records for the specified level.
使用方法
Specifies an existing territory solution.
Specifies the level where records are to be added.
A point layer will add records to the Territories Centers layer.
A polygon layer will add records to the Territories Boundary layer.
The tool requires a feature layer or table for input.
语法
LoadTerritoryRecords(in_territory_solution, level, in_data, {id_field}, {name_field}, {field_map}, {append_data})
参数 | 说明 | 数据类型 |
in_territory_solution | The input territory solution. | Group Layer; Feature Dataset; String |
level | The level where the data will be loaded. | String |
in_data | The layer or records to be loaded. | Table View |
id_field (可选) | The field containing ID values to be loaded into the level. | Field |
name_field (可选) | The field containing name values to be loaded into the level. | Field |
field_map [[attribute, field],...] (可选) | Sets the values for the territory properties.
| Value Table |
append_data (可选) | Specifies where to append or replace the records being loaded.
| Boolean |
派生输出
名称 | 说明 | 数据类型 |
out_territory_solution | The updated territory solution. | Group Layer |
代码示例
The following Python window script demonstrates how to use the LoadTerritoryRecords tool.
import arcpy
arcpy.td.LoadTerritoryRecords("Territory Solution", "Level[1]", r"C:\Temp \sampledata.gdb\StoreLocations", "ID", "Name", None, "REPLACE")
环境
许可信息
- Basic: 需要 Business Analyst
- Standard: 需要 Business Analyst
- Advanced: 需要 Business Analyst