Export Territories Database (Territory Design)
摘要
Exports a Territory database to an external table.
Exporting a Territory database creates a territory assignment table.
用法
-
The Workspace must be one of the following types: database file (DBF), Personal Geodatabase (MDB), Geodatabase (GDB), Microsoft Excel workbook (XLSX)
语法
ExportTerritoriesDatabase_td (in_territory_solution_layer, in_al_id_field, in_dest_workspace, in_dest_table_name)
参数 | 说明 | 数据类型 |
in_territory_solution_layer |
The Territory Solution layer whose data is to be exported. | GP TD Layer |
in_al_id_field |
The ID Field of the Alignment Layer. | String |
in_dest_workspace |
The location of the destination workspace. | Workspace |
in_dest_table_name |
The name of the newly created table. | String |
代码实例
The following Python window script demonstrates how to use Business Analyst geoprocessing tool in immediate mode.
import arcgisscripting
gp = arcgisscripting.create()
gp.ExportTerritoriesDatabase_TD("new layer", "ID", "C:/Temp", "database.dbf")
The following stand-alone script demonstrates how to use the tool.
# Import system modules
import arcgisscripting
gp = arcgisscripting.create()
# Set local variables
solution = "new layer"
idfield = "ID"
workspace = "C:/Temp"
name = "database.dbf"
# Execute tool
gp.ExportTerritoriesDatabase_TD(solution, idfield, workspace, name)
环境
此工具不使用任何地理处理环境
相关主题
许可信息
ArcGIS for Desktop Basic: 需要 Business Analyst
ArcGIS for Desktop Standard: 需要 Business Analyst
ArcGIS for Desktop Advanced: 需要 Business Analyst
4/27/2014