Business Point Reports (Business Analyst)

Résumé

This report shows a listing of businesses or shopping centers in a given area.

Usage

Syntaxe

BusinessReports_ba (BusinessLayer, ReportTemplates, OutputFolder, {InputFeatureLayer}, {IDField}, {StoreIDField}, {RingIDField}, {UseSelectedFeatures}, {InsertMap}, {ReportsOutputReportType}, {TERRITORY_LEVEL}, {SummarizationOptions}, {StoreNameField}, {ReportFormats})
ParamètreExplicationType de donnée
BusinessLayer

The point layer that contains the business or shopping center points you wish to report on.

Feature Layer
ReportTemplates
[ReportTemplates,...]

Select from a list of standard business point report templates.

String
OutputFolder

The report is created in this output directory.

Folder
InputFeatureLayer
(Facultatif)

This layer defines the mapping extent at which the Business Points Report will run. Only points that intersect this boundary will be included in the report.

Feature Layer
IDField
(Facultatif)

The area ID associated with each trade area. For trade areas derived from Business Analyst, this will be a combination of the store ID and the ring ID.

Field
StoreIDField
(Facultatif)

The store ID associated with each trade area.

Field
RingIDField
(Facultatif)

The ring ID associated with each trade area.

Field
UseSelectedFeatures
(Facultatif)

Uses selected points to summarize to the boundary layer.

  • TRUEUses selected points to summarize to the boundary layer.
  • FALSESummarizes the points to the boundary layer on all features. This is the default.
Boolean
InsertMap
(Facultatif)

Inserts a map from ArcMap into an applicable report template.

  • TRUEInserts the map image.
  • FALSEDoes not insert the map image.
Boolean
ReportsOutputReportType
(Facultatif)

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
(Facultatif)

Enter the scripting explanation here.

SummarizationOptions
(Facultatif)

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
(Facultatif)

The store name associated with each trade area.

Field
ReportFormats
(Facultatif)

Select the desired report output format.

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

Exemple de code

BusinessReports Example (Stand-alone Script)
# Create the geoprocessor object
# Description: Summarizes business points in a customer derived trade area and outputs these results in a preformatted report.
# 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 Business Points Report tool

Business = "C:/Projects/Default Project/Custom Data/Business.shp"
ReportOut = "C:/My Output Data/Projects/Reports"
BoundaryInput = "C:/My Output Data/Projects/Default Project/TradeAreas/Customer_Derived_TradeAreas.shp"   
AreaId = "AREA_ID"
StoreID = "STORE_ID"
RingID = "RING"
   
	   	   
# Create the Business Points Report
arcpy.BusinessReports_ba(Business, Business Summary Report, ReportOut, BoundaryInput, AreaId, StoreID, RingID)
 
# Release extension license 
arcpy.CheckInExtension("Business")
 
except:
print arcpy.GetMessages(2)

Environnements

Cet outil ne fait appel à aucun environnement de traitement de données géographiques

Rubriques associées

Informations de licence

ArcView : RequiertBusiness Analyst
ArcEditor : RequiertBusiness Analyst
ArcInfo : RequiertBusiness Analyst

10/4/2010