Доступно с лицензией 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.
Синтаксис
BatchReports_ba (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.
| String |
InsertMap (Дополнительный) | Determine if map image will be inserted if supported by selected report(s).
| Boolean |
ReportStyle (Дополнительный) | The report style for your reports.
| String |
ReportFormats (Дополнительный) | The report output format.
| 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.7\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_2018/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")
except:
print arcpy.GetMessages(2)
Параметры среды
Этот инструмент не использует параметры среды геообработки
Информация о лицензиях
- ArcGIS Desktop Basic: Требует Business Analyst
- ArcGIS Desktop Standard: Требует Business Analyst
- ArcGIS Desktop Advanced: Требует Business Analyst