聚合点 (制图)

许可等级:BasicStandardAdvanced

摘要

在近似点要素聚类周围创建面要素。

用法

语法

AggregatePoints_cartography (in_features, out_feature_class, aggregation_distance)
参数说明数据类型
in_features

要进行邻近性和聚类评估的输入点要素。

Feature Layer
out_feature_class

用来保存表示点聚类的面的要素类。

Feature Class
aggregation_distance

将进行聚类的两个点之间的距离。

Linear unit

代码实例

AggregatePoints 工具示例(Python 窗口)

以下 Python 窗口脚本演示了如何在即时模式下使用 AggregatePoints 工具。

import arcpy from arcpy import env env.workspace = "C:/data" arcpy.AggregatePoints_cartography("C:/data/cartography.gdb/crime/robberies",                                   "C:/data/cartography.gdb/crime/clustered_robberies", "100 meters")
AggregatePoints 工具示例(独立 Python 脚本)

此独立脚本显示的是使用 AggregatePoints 工具的示例。

# Name: AggregatePoints_standalone_script.py
# Description: Creates polygon features around clusters of proximate point features.
# Author: ESRI

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
in_point_features = "C:/data/cartography.gdb/crime/robberies"
out_feature_class = "C:/data/cartography.gdb/crime/clustered_robberies"
aggregation_distance = "100 meters"

# Execute Aggregate Points
arcpy.AggregatePoints_cartography(in_point_features, out_feature_class, aggregation_distance)

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 否
ArcGIS for Desktop Advanced: 是
5/10/2014