ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Benchmark Report

获得 Business Analyst 许可后可用。

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

A comparative report that benchmarks two or more trade areas based on selected volumetric data (typically demographic data).

使用方法

  • When selecting more than a handful of variables or trade areas to be displayed as columns, choose the export option for Excel instead of a Crystal Report .RPT due to formatting restrictions.

  • All results will automatically be stored in the Project/Reports folder.

  • The Benchmarks can only be made on variables that exist in both trade areas being compared.

  • Variables and trade areas can be shown as either rows or columns.

  • When benchmarking all trade areas against a single trade area, the average or the median of all the trade areas is calculated and used as the benchmark.

语法

arcpy.ba.BenchmarkReport(IN_IN_BDS_FEATURE_LAYER, IN_SELECTED_SUMMARIZATIONS, BOUNDARY_LAYERS, {IN_TA_FIELDS}, {IN_BENCHMARK_OPTIONS}, {IN_BENCHMARK_TA}, {InLayoutOptions}, {InSortTA}, {InSortTAField}, {InSortTADescend}, {OutFolder}, {NeedReportOutput}, {OutReportName}, {BenchmarkReport}, {NeedExcelOutput}, {NeedTableOutput}, {ReportFormats}, {UseOnlineData})
参数说明数据类型
IN_IN_BDS_FEATURE_LAYER

The input layer containing the variables to be used in the report.

Feature Layer
IN_SELECTED_SUMMARIZATIONS
[IN_SELECTED_SUMMARIZATIONS,...]

The selected variables from the Input Data Layer to be used in the report.

String
BOUNDARY_LAYERS
[[Layer, {Area ID Field}, {Store Name Field}, {Area Description Field}, {Selection}, {Single ID}],...]

The trade area(s) or boundary layers to be used for benchmarking.

Value Table
IN_TA_FIELDS
[IN_TA_FIELDS,...]
(可选)

The fields of the trade areas that will appear on the report.

String
IN_BENCHMARK_OPTIONS
(可选)

Determines the desired approach to compare the trade area values against a benchmark.

  • NONE —Compares the selected variables in the report against the totals of those variables in all the trade areas.
  • USE_AVERAGE —Compares the selected variables in the report against an average of those variables in all trade areas.
  • USE_MEDIAN —Compares the selected variables in the report against a median of those variables in all trade areas.
  • USE_TRADE AREA —Compares the selected variables in the report against the totals of those variables in a selected trade area.
String
IN_BENCHMARK_TA
(可选)

The trade used as the benchmark to compare against all other trade areas.

String
InLayoutOptions
(可选)

Determines the orientation of the selected variables in the report.

  • VARIABLES_IN_COLUMNS —Outputs the report with the variables in columns and the trade areas in row.
  • VARIABLES_IN_ROWS —Outputs the report with the variables in rows and the trade areas in columns.
String
InSortTA
(可选)

Defines how the report will be sorted.

  • True —Sorts the report by the trade area.
  • False —Does not sort the trade area.
Boolean
InSortTAField
(可选)

The field in the trade area that will be used for sorting.

String
InSortTADescend
(可选)

Determines if the trade areas will be sort in descending order.

  • True —The trade areas will be sorted in descending order.
  • False —The trade areas will not be sorted in descending order.
Boolean
OutFolder
(可选)

The report output directory folder.

Folder
NeedReportOutput
(可选)

Determines if a formatted report will be generated.

  • CREATE_REPORT —Select this option to generate a formatted report.
  • DONT_CREATE_REPORT —Will not generate a formatted report.
Boolean
OutReportName
(可选)

The name that will appear on the report.

String
BenchmarkReport
(可选)

Names the report for use/access in the Business Analyst reports wizard.

String
NeedExcelOutput
(可选)

Select this option to export the report as an Excel output.

  • CREATE_EXCEL —Output is in Excel format.
  • DONT_CREATE_EXCEL —Output will not be in Excel format.
Boolean
NeedTableOutput
(可选)

Select this option to export the report as a dBASE output.

  • CREATE_TABLE —Output is in dBASE format.
  • DONT_CREATE_TABLE —Output will not be in dBASE format.
Boolean
ReportFormats
(可选)

Select the desired report output format.

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSX
  • Stripped XLSX
String
UseOnlineData
(可选)

Select to access online Business Analyst data to use in the analysis.

  • True —Allows you to acess online Business Analyst data.
  • False —You will only have access to locally loaded Business Analyst data. This is the default.
Boolean

代码示例

BenchmarkReport example (stand-alone script)

# Name: BenchmarkReport.py
# Description: Benchmarks current total households and current year total population from drive time trade areas generated for the same location from different years.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
 
# Define input and output parameters for the Benchmark Report tool
  InputPath = "C:/ArcGIS/Business Analyst/US_2022/Data/Demographic Data/BlockGroups_bg.bds"
  SelectedVars = "TOTHH_CY;TOTHH_FY"
  Boundary = "C:/My Output Data/Projects/Default Projects/Trade Areas/Drive Time New.shp"
  TAFields = "AREA_ID;NAME;AREA_DESC;ALL"
   
 
# Create Benchmark Report output file
  arcpy.BenchmarkReport_ba(InputPath,
	  SelectedVars,
	  Boundary,
	  TAFields)
 
# Release extension license 
arcpy.CheckInExtension("Business")

环境

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

许可信息

  • Basic: 需要 Business Analyst
  • Standard: 需要 Business Analyst
  • Advanced: 需要 Business Analyst

相关主题

  • An overview of the Business Analyst Reports toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2022 Esri. | 隐私政策 | 法律声明