Summarize Points Report (Business Analyst)

Уровень лицензии:BasicStandardAdvanced

Краткая информация

Aggregates data from a point layer (such as a customer layer) to a polygon layer (such as a trade area).

Learn more about how Summarize Points Report works

Использование

Синтаксис

SummarizePoints_ba (InputPointLayer, InputBoundaryLayer, IDField, NameField, SummarizePointsFields, {UseSelectedFeatures}, {UseSelectedBoundaries}, {CreateReport}, {ReportTitle}, {ReportFile}, {CreateFeatureClass}, {OutputFeatureClass}, {ReportFormats})
ПараметрОбъяснениеТип данных
InputPointLayer

The point layer containing the data to be appended to the boundary layer.

Feature Layer
InputBoundaryLayer

The boundary layer that will inherit the selected attributes of the point layer.

Feature Layer
IDField

The ID field of the boundary layer.

Field
NameField

The name field associated with the boundary layer.

Field
SummarizePointsFields
[SummarizePointsFields,...]

The fields (or attributes) of the point layer that will be appended and summed to the boundary layer.

Field
UseSelectedFeatures
(дополнительно)

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
UseSelectedBoundaries
(дополнительно)

Uses the selected boundaries for the point summarization.

  • TrueUses the selected boundaries for the point summarization.
  • FalseUses the selected boundaries for the point summarization on all features. This is the default.
Boolean
CreateReport
(дополнительно)

Generates a report.

  • TrueWill generate a Summarize Points report. This is the default.
  • FalseWill not generate a Summarize Points report.
Boolean
ReportTitle
(дополнительно)

The descriptive title on the output report.

String
ReportFile
(дополнительно)

Determines the directory the Summarize Points report will be saved to.

Folder
CreateFeatureClass
(дополнительно)

Generates a new boundary layer with the point data summarizations appended.

  • TrueWill generate a Summarized Points boundary layer.
  • FalseWill not generate a Summarized Points boundary layer. This is the default.
Boolean
OutputFeatureClass
(дополнительно)

Determines the directory the new boundary layer will be saved to.

Feature Class
ReportFormats
[ReportFormats,...]
(дополнительно)

Select the desired report output format

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

Пример кода

SummarizePoints Example (Stand-alone Script)
# Name: SummarizePoints.py
# Description: Summarizes sales data to a trade area in the San Francisco market. 
# Author: Esri

# Import system modules 
 
import arcpy 

arcpy.AddToolbox("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 Summarize Points Report tool

  PointInput = "C:/My Output Data/Projects/Default Project/CustLayers/sf_custs/CustomerLayer.shp" 
  Boundary = "C:/My Output Data/Projects/Default Project/TradeAreas/Sub-geography/TradeArea.shp" 
  Id = "ID" 
  Name = "NAME" 
  Fields = "SALES" 
  Report = "SanFranBGs" 
  Output = "C:/My Output Data/Projects/Default Project/Reports/SummarizePoints_0/Report.rpt" 

# Create the Summarize Points report 

  arcpy.SummarizePoints_ba(PointInput, Boundary, Id, Name, Fields, "false", "false", "true", Report, Output) 

# 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