Customer Geographic Summary Report (Business Analyst)

许可等级:BasicStandardAdvanced

摘要

Lists standard geographic distributions for your customer layer.

用法

语法

GeographicCustomerSummaryReport_ba (CustomerLayer, ReportFile, {UseSelectedFeatures}, ReportTitle, {ReportFormats})
参数说明数据类型
CustomerLayer

The input feature class containing the points for the customer distribution. In most cases, this will be a Business Analyst customer layer.

Input
ReportFile

Outputs the report to a directory for retrieval later.

File
UseSelectedFeatures
(可选)

Generates a report on selected features of the customer layer.

  • TrueGenerates the Customer Geographic Summary Report on selected features.
  • FalseGenerates the Customer Geographic Summary Report on all features. This is the default.
Boolean
ReportTitle

Name and title for the report.

String
ReportFormats
(可选)

Select the desired report output format.

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

代码实例

GeographicSummaryReport Example (Stand-alone Script)
# Name: GeographicSummaryReport.py
# Description: Summarizes the geographic features associated with a sample customer dataset in San Francisco.
# 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 Customer Geographic Summary Report tool
  Cust = "C:/temp/sf_cust.shp"
  OutputFile = "C:/temp/CustGeoRpt.rpt"
  Title = "Customer Summary Report"
 
# Create customer geographic summary reports
  arcpy.GeographicCustomerSummaryReport_ba(Cust, OutputFile, "false", Title)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcGIS for Desktop Basic: 需要 Business Analyst
ArcGIS for Desktop Standard: 需要 Business Analyst
ArcGIS for Desktop Advanced: 需要 Business Analyst
4/27/2014