Quick Reports (Business Analyst)

概要

Quickly runs reports for single or multiple sites.

使用法

構文

QuickReports_ba (InputFeatureLayer, IDField, BDSFeatureClass, ReportTemplates, OutputFolder, {StoreIDField}, {RingIDField}, {UseSelectedFeatures}, {InsertMap}, {ReportsOutputReportType}, {TERRITORY_LEVEL}, {SummarizationOptions}, {StoreNameField}, {OutputReportList}, {ReportStyle}, {ReportFormats})
パラメータ説明データ タイプ
InputFeatureLayer

The boundary layer that will be used to generate the reports. This boundary layer is usually a Business Analyst trade area.

Table View
IDField

A unique identifier for each polygon in the boundary layer.

Field
BDSFeatureClass

The layer that contains the data that will be used to generate the report.

Feature Layer
ReportTemplates
[ReportTemplates,...]

Report templates that will be created for each feature in the boundary layer.

String
OutputFolder

Creates a new folder that will store the reports generated by this tool.

Folder
StoreIDField
(オプション)

The store ID associated with each trade area.

Field
RingIDField
(オプション)

The ring ID associated with each trade area.

Field
UseSelectedFeatures
(オプション)

Generates a report on selected features of the trade area layer.

  • TrueGenerates reports for selected features.
  • FalseGenerates reports for all features. This is the default.
Boolean
InsertMap
(オプション)

Inserts a map from ArcMap into an applicable report template.

  • TrueInserts map image.
  • FalseDoes not insert map image. This is the default.
Boolean
ReportsOutputReportType
(オプション)

This option allows a user to select between generating individual reports per boundary or stitching all reports into a single report file.

  • REPORT_PER_BOUNDARYGenerates an individual report for each boundary in the boundary layer.
  • SINGLE_REPORTStitches all reports for all boundaries into a single report.
String
TERRITORY_LEVEL
(オプション)

Select a layer created using the Territory Manager.

String
SummarizationOptions
(オプション)

This option determines how the data will be displayed on a report.

  • INDIVIDUAL_FEATURESGenerates a report for each trade area boundary.
  • WHOLE_LAYEREach variable in the report is summarized for all the boundaries.
  • BOTH_FEATURES_AND_LAYERGenerates a report for each trade area boundary, and at the end of the report, each variable in the report is summarized for all the boundaries.
String
StoreNameField
(オプション)

The store name associated with each trade area.

Field
OutputReportList
(オプション)

This document lists the Windows directory the reports were saved to and the list of reports selected to be run.

File
ReportStyle
(オプション)

Select the report style for your reports.

  • ScreenThis report format will display a modern look and feel using a more visually pleasing format.
  • PaperThis report format will display a classic look and feel using a more generic style.
String
ReportFormats
(オプション)

Select the desired report output format.

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

コード サンプル

QuickReports Example (Stand-alone Script)
# Name: QuickReports.py
# Description: Runs a Demographic and Income report on a selected trade area.
# Author: ESRI

# Import system modules
import arcview
import arcpy


 arcpy.ImportToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")

try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
 
# Define input and output parameters for the Quick Reports tool
  Boundary = "C:/temp/TradeArea.shp"
  Id = "AREA_ID"
  Bds = "C:/Program Files/ArcGIS/Desktop10.0/Business Analyst/Data/BDS/esri_bg.bds"
  Output = "C:/temp"
  Rpt = "Demographic and Income Report"
 
# Create Quick reports
  arcpy.QuickReports_ba(Boundary, Id, Bds, Rpt, Output)
 
# Release extension license 
  arcpy.CheckInExtension("Business")
 
except:
  print arcpy.GetMessages(2)

環境

このツールは、ジオプロセシング環境では使用できません

関連項目

ライセンス情報

ArcView: 要 Business Analyst
ArcEditor: 要 Business Analyst
ArcInfo: 要 Business Analyst

10/4/2010