テリトリー ソリューションの比較(Compare Territory Solutions) (テリトリー デザイン)
サマリ
比較レポートを作成します。
比較レポートは、2 つのテリトリー ソリューション間の主な違いや類似点を示すために使用されます。
使用法
-
各統計フィールド変数の形式は、「‘変数' Calc」とする必要があります。ここで、Calc は、ATDConfig.xml ファイルで指定されたテリトリー デザイン演算のうちの 1 つです。
-
各データ フィールド変数およびチャート フィールド変数の形式は、「‘変数'」とする必要があります。
-
レポート フォルダの場所は、デフォルトでは、現在の Business Analyst プロジェクトの「Reports」フォルダの下です。
構文
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 |
レポートで使用される最初のテリトリー ソリューション レイヤです。 | GP TD Layer |
in_territory_solution_layer2 |
レポートで使用される 2 番目のテリトリー ソリューション レイヤです。 | GP TD Layer |
in_stat_fields [in_stat_fields,...] (オプション) |
レポートの統計セクションに含まれる変数。 | GP Value Table |
in_data_fields [in_data_fields,...] (オプション) |
レポートのデータ セクションに含まれる変数。 | GP Value Table |
in_chart_fields [in_chart_fields,...] (オプション) |
レポートのチャート セクションに含まれる変数。 | GP Value Table |
in_report_folder |
レポート フォルダの場所。 | String |
in_report_name |
レポート ファイルの名前。 | String |
in_report_title (オプション) |
レポートのタイトル。 | String |
コードのサンプル
次の Python ウィンドウ スクリプトは、イミディエイト モードで Business Analyst ジオプロセシング ツールを使用する方法を示しています。
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")
次のスタンドアロン スクリプトで、このツールの使用方法を示します。
# 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
5/20/2014