ee.FeatureCollection.distinct

একটি সংগ্রহ থেকে সদৃশ সরান. মনে রাখবেন যে ডুপ্লিকেটগুলি নির্বাচিত বৈশিষ্ট্যগুলির ক্রমিক ফর্মের উপর একটি শক্তিশালী হ্যাশ ব্যবহার করে নির্ধারণ করা হয়।

ব্যবহার রিটার্নস
FeatureCollection. distinct (properties) ফিচার কালেকশন
যুক্তি টাইপ বিস্তারিত
এই: collection ফিচার কালেকশন ইনপুট সংগ্রহ যা থেকে বস্তু নির্বাচন করা হবে।
properties অবজেক্ট তুলনা করার জন্য ব্যবহার করার জন্য একটি সম্পত্তির নাম বা সম্পত্তির নামের তালিকা। বস্তুর জ্যামিতি তুলনা করতে '.geo' বৈশিষ্ট্য অন্তর্ভুক্ত করা যেতে পারে।

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// 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'));

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# 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())