ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Summarize Points Report

获得 Business Analyst 许可后可用。

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

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

使用方法

  • This tool allows you to generate trade areas with appended customer or store-based data.

  • Appended values must be volumetric/numeric.

  • All values appended will be summed.

  • Do not append medians, means, or averages.

  • You can generate a report or a mapping layer with the selected appended values attributed.

  • The mapping output will be thematically mapped based on the point count (that is, the number of points that fall within each polygon).

语法

arcpy.ba.SummarizePoints(InputPointLayer, InputBoundaryLayer, IDField, NameField, SummarizePointsFields, {UseSelectedFeatures}, {UseSelectedBoundaries}, {CreateReport}, {ReportTitle}, {ReportFile}, {CreateFeatureClass}, {OutputFeatureClass}, {GroupBy}, {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.

  • True —Uses selected points to summarize to the boundary layer.
  • False —Summarizes the points to the boundary layer on all features. This is the default.
Boolean
UseSelectedBoundaries
(可选)

Uses the selected boundaries for the point summarization.

  • True —Uses the selected boundaries for the point summarization.
  • False —Uses the selected boundaries for the point summarization on all features. This is the default.
Boolean
CreateReport
(可选)

Generates a report.

  • True —Will generate a Summarize Points report. This is the default.
  • False —Will 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.

  • True —Will generate a Summarized Points boundary layer.
  • False —Will 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
GroupBy
(可选)

The field with which you want to group your points.

Field
ReportFormats
[ReportFormats,...]
(可选)

Select the desired report output format

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSX
  • 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 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 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")

环境

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

许可信息

  • Basic: 需要 Business Analyst
  • Standard: 需要 Business Analyst
  • Advanced: 需要 Business Analyst

相关主题

  • An overview of the Business Analyst Reports toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2022 Esri. | 隐私政策 | 法律声明