Compare Territory Solutions (Territory Design)

许可等级:BasicStandardAdvanced

摘要

Creates a comparison report.

Comparison reports are used to show the key differences or similarities between two Territory Solutions.

用法

语法

CompareTerritorySolutions_td (in_territory_solution_layer1, in_territory_solution_layer2, {in_stat_fields}, {in_data_fields}, {in_chart_fields}, in_report_folder, in_report_name, {in_report_title})
参数说明数据类型
in_territory_solution_layer1

The first Territory Solution layer to be used in the Report.

GP TD Layer
in_territory_solution_layer2

The second Territory Solution layer to be used in the Report.

GP TD Layer
in_stat_fields
[in_stat_fields,...]
(可选)

The variables to be included inside the Statistics section of the Report.

GP Value Table
in_data_fields
[in_data_fields,...]
(可选)

The variables to be included inside the Data section of the Report.

GP Value Table
in_chart_fields
[in_chart_fields,...]
(可选)

The variables to be included inside the Chart section of the Report.

GP Value Table
in_report_folder

The location of the Report Folder.

String
in_report_name

The name of the Report file.

String
in_report_title
(可选)

The title of the Report.

String

代码实例

The following Python window script demonstrates how to use Business Analyst geoprocessing tool in immediate mode.

import arcgisscripting
gp = arcgisscripting.create()
gp.CompareTerritorySolutions_TD("new layer1", "new layer2", "'Count';'AREA_SUM' SUM;'AREA_SUM' MIN;'TOTPOP_CY_SUM' MAX", "'Count';'AREA_SUM';'TOTPOP_CY_SUM'", "'Count';'AREA_SUM';'TOTPOP_CY_SUM'", "C:/BA Output/Project/Default Project/Reports/", "New Report" , "The Comparison of New Territory Solution1 and New Territory Solution2")

The following stand-alone script demonstrates how to use the tool.

# Import system modules
import arcgisscripting
gp = arcgisscripting.create()

# Set local variables
Solution1 = "new layer1"
Solution2 = "new layer2"
statistics = "'Count';'AREA_SUM' SUM;'AREA_SUM' MIN;'TOTPOP_CY_SUM' MAX"
data = "'Count';'AREA_SUM';'TOTPOP_CY_SUM'"
chart = "'Count';'AREA_SUM';'TOTPOP_CY_SUM'"
folder = "C:/BA Output/Project/Default Project/Reports/"
name = "New Report"
title = "The Comparison of New Territory Solution1 and New Territory Solution2"

# Execute tool
gp.CompareTerritorySolutions_TD(solution1, solution2, statistics, data, chart, folder, name, title)

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcGIS for Desktop Basic: 需要 Business Analyst
ArcGIS for Desktop Standard: 需要 Business Analyst
ArcGIS for Desktop Advanced: 需要 Business Analyst
4/27/2014