Business Point Reports (Business Analyst)
摘要
This report shows a listing of businesses or shopping centers in a given area.
用法
-
The available reports are dependent on the point layer selected.
-
If a Shopping Center layer is selected, then you can select the Shopping Centers Report.
-
If a Business point layer is selected, you can select one of two reports: the Business Summary report or the Detailed Summary report.
-
This tool only functions when selecting the native Business point data or Shopping Center data that comes standard with the Business Analyst extension.
语法
参数 | 说明 | 数据类型 |
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 (可选) |
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 (可选) |
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 (可选) |
The store ID associated with each trade area. | Field |
RingIDField (可选) |
The ring ID associated with each trade area. | Field |
UseSelectedFeatures (可选) |
Uses selected points to summarize to the boundary layer.
| Boolean |
InsertMap (可选) |
Inserts a map from ArcMap into an applicable report template.
| Boolean |
ReportsOutputReportType (可选) |
This option allows a user to select between generating individual reports per boundary or stitching all reports into a single report file.
| String |
TERRITORY_LEVEL (可选) |
Enter the scripting explanation here. | |
SummarizationOptions (可选) |
This option determines how the data will be displayed on a report
| String |
StoreNameField (可选) |
The store name associated with each trade area. | Field |
ReportFormats (可选) |
Select the desired report output format.
| String |
代码实例
# 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 (x86)\ArcGIS\Desktop10.2\Business Analyst\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)