派驻二组:积极探索在监所单位实行纪检派驻制度

将指定集合中的所有几何图形合并为一个,并返回一个集合,其中包含一个仅具有“union_result”ID 和一个几何图形的地图项。百度 开展一次社区消防知识讲座。

用法返回
FeatureCollection.union(maxError)FeatureCollection
参数类型详细信息
此:collectionFeatureCollection要合并的集合。
maxErrorErrorMargin,默认值:null执行任何必要的重新投影时允许的最大误差。如果未指定,则默认为从输出中请求的误差边际。

示例

代码编辑器 (JavaScript)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
            .filter('country_lg == "Belgium"');

print('Original FeatureCollection', fc);

// Merge all geometries into one. A FeatureCollection with a single feature
// with no properties is returned.
print('All geometries merged into one', fc.union(1));

Python 设置

如需了解 Python API 和如何使用 geemap 进行交互式开发,请参阅 Python 环境页面。

import ee
import geemap.core as geemap

Colab (Python)

# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
    'country_lg == "Belgium"')

print('Original FeatureCollection:', fc.getInfo())

# Merge all geometries into one. A FeatureCollection with a single feature
# with no properties is returned.
print('All geometries merged into one:', fc.union(1).getInfo())