Доступно с лицензией Business Analyst.
Сводка
This report shows a listing of businesses in a given area.
Использование
The available reports are dependent on the point layer selected.
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 that comes standard with Business Analyst
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.BusinessReports(BusinessLayer, ReportTemplates, OutputFolder, {InputFeatureLayer}, {IDField}, {StoreIDField}, {RingIDField}, {UseSelectedFeatures}, {InsertMap}, {ReportsOutputReportType}, {TERRITORY_LEVEL}, {SummarizationOptions}, {StoreNameField}, {ReportFormats}, {ReportStyle}, {Header1Field}, {Header2Field})
Параметр | Объяснение | Тип данных |
BusinessLayer | The point layer that contains the business 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 (Дополнительный) | Select a layer created using the Territory Manager. | String |
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 [ReportFormats,...] (Дополнительный) | Select the desired report output format.
| String |
ReportStyle (Дополнительный) | The report style for your reports.
| String |
Header1Field (Дополнительный) | Optional description on the report header. | Field |
Header2Field (Дополнительный) | Optional sub-description on the report header. | Field |
Пример кода
BusinessReports example (stand-alone script)
# Name: BusinessReports.py
# 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(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 Business Points Report tool
Business = "C:/Projects/Default Project/Custom Data/Business.shp"
Template = "Business Summary Report"
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,
Template,
ReportOut,
BoundaryInput,
AreaId,
StoreID,
RingID)
# Release extension license
arcpy.CheckInExtension("Business")
Параметры среды
Этот инструмент не использует параметры среды геообработки
Информация о лицензиях
- Basic: Требуется Business Analyst
- Standard: Требуется Business Analyst
- Advanced: Требуется Business Analyst