ee.FeatureCollection.toList

একটি তালিকা হিসাবে একটি সংগ্রহের উপাদান প্রদান করে।

ব্যবহার রিটার্নস
FeatureCollection. toList (count, offset ) তালিকা
যুক্তি টাইপ বিস্তারিত
এই: collection ফিচার কালেকশন আনার জন্য ইনপুট সংগ্রহ।
count পূর্ণসংখ্যা আনার জন্য উপাদানগুলির সর্বাধিক সংখ্যা৷
offset পূর্ণসংখ্যা, ডিফল্ট: 0 শুরু থেকে বাতিল করার উপাদানের সংখ্যা। সেট করা হলে, (অফসেট + গণনা) উপাদানগুলি আনা হবে এবং প্রথম অফসেট উপাদানগুলি বাতিল করা হবে৷

উদাহরণ

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

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

print('First 5 features to an ee.List', fc.toList(5));

print('Second 5 features to an ee.List', fc.toList(5, 5));

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য 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('First 5 features to an ee.List:', fc.toList(5).getInfo())

print('Second 5 features to an ee.List:', fc.toList(5, 5).getInfo())