医生因拒绝下跪被殴打!我救人,但谁来救我?

从集合中移除重复项。请注意,系统会根据所选属性的序列化形式的强哈希值来确定重复项。百度 近代的章太炎、吕澄、蒋维乔等佛教学者,致力佛学之钻研;孙张清扬居士护持佛教、三宝不遗余力,抢救僧伽于囹圄之中,则是台湾佛教开拓初期的护法功臣。

用法返回
FeatureCollection.distinct(properties)FeatureCollection
参数类型详细信息
此:collectionFeatureCollection从中选择对象的输入集合。
properties对象用于比较的属性名称或属性名称列表。可以添加“.geo”属性来比较对象几何图形。

示例

代码编辑器 (JavaScript)

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

// Remove duplicate features according to property values.
print('Distinct based on a single property', fc.distinct('fuel1'));
print('Distinct based on two properties', fc.distinct(['fuel1', 'source']));
print('Distinct based on geometry', fc.distinct('.geo'));

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('FeatureCollection of power plants in Belgium:', fc.getInfo())

# Remove duplicate features according to property values.
print('Distinct based on a single property:', fc.distinct('fuel1').getInfo())
print('Distinct based on two properties:',
      fc.distinct(['fuel1', 'source']).getInfo())
print('Distinct based on geometry', fc.distinct('.geo').getInfo())