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

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

Batch Reports

获得 Business Analyst 许可后可用。

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

描述

Allows you to batch reports and run them at a later time.

使用方法

  • Batch one or more reports to be processed in the order that the reports are added.

  • In ArcMap, reports will only be created for features that are within the active study area or analysis extent.

  • This tool should primarily be used to create reports for Business Analyst trade areas.

  • The layer to summarize is usually Esri data that comes standard with Business Analyst but can be any boundary layer that contains quantifiable data that has been set up using the Analysis Layer Setup function.

  • If selecting a Business Analyst dataset to aggregate data, choose the smallest level of geography to improve accuracy. For example, selecting the block group data will provide the greatest amount of accuracy for creating reports for trade areas.

  • Use the Stitch Reports parameter to combine two or more reports for each feature in the input polygon.

  • The InsertMap parameter uses the Business Analyst default basemap. If you would like to use a different basemap (in the current data view), then turn off background processing in the geoprocessing options.

语法

arcpy.ba.BatchReports(Boundaries, BDSFeatureClass, ReportTemplates, OutputFolder, {StitchReports}, {InsertMap}, {ReportStyle}, {ReportFormats})
参数说明数据类型
Boundaries
[[Layer, {ID field}, {Store ID field}, {Ring ID field}, {Use selected}],...]

The input feature class that defines the boundary layers for which the reports will be generated.

Value Table
BDSFeatureClass

The input feature class that contains the data from which the reports will be generated.

Feature Layer
ReportTemplates
[ReportTemplates,...]

Selects from a list of predefined or custom report templates in Business Analyst.

String
OutputFolder

The output directory that will contain the reports.

Folder
StitchReports
(可选)

Takes the report templates selected in the Create Reports parameter and stitches them into a single report based on the order they are added.

  • REPORT_PER_BOUNDARY —Generates an individual report for each boundary in the boundary layer.
  • STITCH_REPORTS —Stitches all reports.
  • SINGLE_REPORT —Stitches all reports for all boundaries into a single report.
  • STITCHED_BY_BOUNDARY —Stitches all reports for all boundaries.
String
InsertMap
(可选)

Determine if map image will be inserted if supported by selected report(s).

  • True —Inserts map image into report based on the current view in ArcMap.
  • False —Will not insert map image into report based on the current view in ArcMap.
Boolean
ReportStyle
(可选)

The report style for your reports.

  • Screen —This report format will display a modern look and feel using a more visually pleasing format.
  • Paper —This report format will display a classic look and feel using a more generic style.
String
ReportFormats
(可选)

The report output format.

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSX
  • Stripped XLSX
String

代码示例

BatchReports example (stand-alone script)

# Name: BatchReports.py
# Description: Places an Age report in the batch queue.
# 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 Batch Reports tool

  BoundaryLayer = "C:/temp/TradeArea.shp' AREA_ID STORE_ID RING false"
  InputFC = "C:/ArcGIS/Business Analyst/US_2022/Data/Demographic Data/BlockGroups_bg.bds"
  Template = "Executive Summary"
  OutPath = "C:/temp"
 
# Create batch reports

  arcpy.BatchReports_ba(BoundaryLayer,
	  InputFC,
	  Template,
	  OutPath)

# 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. | 隐私政策 | 法律声明