ee.FeatureCollection.limit

একটি সংগ্রহকে নির্দিষ্ট সংখ্যক উপাদানে সীমাবদ্ধ করুন, ঐচ্ছিকভাবে প্রথমে একটি নির্দিষ্ট প্রপার্টি দ্বারা তাদের সাজান।

সীমিত কালেকশন দেখায়।

ব্যবহাররিটার্ন
FeatureCollection.limit(max, property, ascending)সংগ্রহ
আর্গুমেন্টধরনবিবরণ
এটি: collectionসংগ্রহকালেকশন ইনস্ট্যান্স।
maxনম্বরসংগ্রহের সীমা নির্ধারণ করার সংখ্যা।
propertyস্ট্রিং, ঐচ্ছিকসাজানো হলে, যে প্রপার্টি অনুসারে সাজানো হবে।
ascendingবুলিয়ান, ঐচ্ছিকছোট থেকে বড় নাকি বড় থেকে ছোট ক্রমে সাজানো হবে। ডিফল্ট হল true (ঊর্ধ্বক্রম)।

উদাহরণ

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

// FeatureCollection of global power plants.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');

print('First 5 features (power plants)', fc.limit(5));

print('Smallest 5 power plants by capacity in ascending order',
      fc.limit({max: 5, property: 'capacitymw'}));

print('Largest 5 power plants by capacity in descending order',
      fc.limit({max: 5, property: 'capacitymw', ascending: false}));

Python সেট-আপ

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

import ee
import geemap.core as geemap

Colab (Python)

# FeatureCollection of global power plants.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')

display('First 5 features (power plants):', fc.limit(5))

display('Smallest 5 power plants by capacity in ascending order:',
        fc.limit(**{'maximum': 5, 'opt_property': 'capacitymw'}))

display('Largest 5 power plants by capacity in descending order:',
        fc.limit(**{'maximum': 5, 'opt_property': 'capacitymw',
                    'opt_ascending': False}))