本文简要介绍 python 语言中 arcgis.features.summarize_data.summarize_center_and_dispersion
的用法。
用法:
arcgis.features.summarize_data.summarize_center_and_dispersion(analysis_layer, summarize_type=['CentralFeature'], ellipse_size=None, weight_field=None, group_field=None, output_name=None, context=None, gis=None, estimate=False, future=False)
返回:
如果提供了
output_name
,则为项目列表,否则为具有以下键的 Python 字典:“central_feature_result_layer”:层(FeatureCollection
)“mean_feature_result_layer”:层(FeatureCollection
)“median_feature_result_layer”:层(FeatureCollection
)“ellipse_feature_result_layer”:层(FeatureCollection
)
summarize_center_and_dispersion
方法查找中心特征和方向分布。它可用于回答以下问题:中心在哪里?
从所有其他函数中哪个函数最易于访问?
这些函数的分散、紧凑或集成程度如何?
有方向性趋势吗?
Parameter
Description
analysis_layer
必需
FeatureLayer
。要分析的点、线或面要素。请参阅特征输入。summarize_type
必需的字符串列表。总结
analysis_layer
的方法。选择列表:[“CentralFeature”、“MeanCenter”、“MedianCenter”、“Ellipse”]
ellipse_size
可选字符串。以标准差表示的输出椭圆的大小。
选择列表:[‘1 个标准差’、‘2 个标准差’、‘3 个标准差’]
默认椭圆大小为“1 个标准差”。
weight_field
可选字段。
analysis_layer
中的数字字段,用于根据位置的相对重要性对位置进行加权。group_field
可选字段。用于对要素进行分组以进行单独的方向分布计算的字段。
group_field
可以是整数、日期或字符串类型。output_name
可选字符串或
FeatureLayer
。现有要素图层将导致新图层附加到要素服务。如果 overwrite 在上下文中为 True,则新层将覆盖现有层。如果未指示output_name,则创建新的FeatureCollection
。context
可选字典。处理范围和输出空间参考等附加设置。对于summarize_center_and_dispersion,有三个设置。
extent
- 定义分析区域的边界框。仅分析input_layer 中与边界框相交的那些特征。outSR
- 输出要素将投影到wkid
引用的输出空间参考中。overwrite
- 如果为 True,则 output_name 中的要素层将被新要素层覆盖。适用于 ArcGIS Online 或 Enterprise 11+# Example Usage context = {"extent": {"xmin": 3164569.408035, "ymin": -9187921.892449, "xmax": 3174104.927313, "ymax": -9175500.875353, "spatialReference":{"wkid":102100,"latestWkid":3857}}, "outSR": {"wkid": 3857}, "overwrite": True}
estimate
可选的布尔值。如果为 True,将返回运行该操作的积分数。
future
可选布尔值。如果为 True,则将返回 future 对象,并且进程不会等待任务完成。默认为False,表示等待结果。
例子:
# USAGE EXAMPLE: To find central features and mean center of earthquake over past months. central_features = summarize_center_and_dispersion(analysis_layer=earthquakes, summarize_type=["CentralFeature","MeanCenter"], ellipse_size='2 standard deviations', weight_field='mag', group_field='magType', output_name='find central features and mean center of earthquake over past months')
相关用法
- Python ArcGIS summarize_center_and_dispersion用法及代码示例
- Python ArcGIS summarize_categorical_raster用法及代码示例
- Python ArcGIS summarize_elevation用法及代码示例
- Python ArcGIS summarize_nearby用法及代码示例
- Python ArcGIS summarize_raster_within用法及代码示例
- Python ArcGIS summarize_attributes用法及代码示例
- Python ArcGIS summarize_within用法及代码示例
- Python ArcGIS sum用法及代码示例
- Python ArcGIS subset_multidimensional_raster用法及代码示例
- Python ArcGIS suggest用法及代码示例
- Python ArcGIS sample用法及代码示例
- Python ArcGIS square用法及代码示例
- Python ArcGIS sqrt用法及代码示例
- Python ArcGIS slope用法及代码示例
- Python ArcGIS segment_mean_shift用法及代码示例
- Python ArcGIS set_null用法及代码示例
- Python ArcGIS std用法及代码示例
- Python ArcGIS sinh用法及代码示例
- Python ArcGIS segment用法及代码示例
- Python ArcGIS sin用法及代码示例
- Python ArcGIS power用法及代码示例
- Python ArcGIS APIKeyManager.get用法及代码示例
- Python ArcGIS KnowledgeGraph.named_object_type_delete用法及代码示例
- Python ArcGIS ContentManager.unshare_items用法及代码示例
- Python ArcGIS ImageryLayer.thumbnail用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 arcgis.features.summarize_data.summarize_center_and_dispersion。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。