ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Compare Territory Solutions

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Creates a comparison report.

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

Usage

  • Each statistics field variable must be in the following format: ‘Variable' Calc, where Calc is one of the Territory Design calculators specified from the ATDConfig.xml file.

  • Each data field and chart field variable must be in the following format: ‘Variable'

  • By default, the Report Folder Location is under the "Reports" folder in the current BA project.

Syntax

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})
ParameterExplanationData Type
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,...]
(Optional)

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

GP Value Table
in_data_fields
[in_data_fields,...]
(Optional)

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

GP Value Table
in_chart_fields
[in_chart_fields,...]
(Optional)

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
(Optional)

The title of the Report.

String

Code Sample

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)

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An Overview of the Reports Toolset
  • Create Territories
  • Create Territory Solution
  • Create Detailed Territory Report
  • Create Territory Report
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal