Create Territory Report (Territory Design)

Уровень лицензии:BasicStandardAdvanced

Краткая информация

Generates a report for a Territory Solution.

Использование

Синтаксис

CreateTerritoryReport_TD_td (in_territory_solution_layer, {in_stat_fields}, {in_data_fields}, {in_chart_fields}, {in_report_folder}, {in_report_name}, {in_report_title})
ПараметрОбъяснениеТип данных
in_territory_solution_layer

The 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.CreateTerritoryReport_TD("new layer", "'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 Territory Report of New Territory Solution")

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"
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 Territory Report of New Territory Solution"

# Execute tool
gp.CreateTerritoryReport_TD(solution, 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