ee.FeatureCollection.aggregate_array

यह किसी कलेक्शन में मौजूद ऑब्जेक्ट की दी गई प्रॉपर्टी के हिसाब से एग्रीगेट करता है. साथ ही, चुनी गई प्रॉपर्टी की सभी वैल्यू की सूची बनाता है.

इस्तेमालरिटर्न
FeatureCollection.aggregate_array(property)सूची
आर्ग्यूमेंटटाइपविवरण
यह: collectionFeatureCollectionवह कलेक्शन जिसके आधार पर एग्रीगेट करना है.
propertyस्ट्रिंगकलेक्शन के हर एलिमेंट से इस्तेमाल की जाने वाली प्रॉपर्टी.

उदाहरण

कोड एडिटर (JavaScript)

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

print('Power plant fuel sources',
      fc.aggregate_array('fuel1'));  // ee.List

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('Power plant fuel sources:',
      fc.aggregate_array('fuel1').getInfo())  # ee.List