ee.FeatureCollection.size

यह फ़ंक्शन, कलेक्शन में मौजूद एलिमेंट की संख्या दिखाता है.

इस्तेमालरिटर्न
FeatureCollection.size()पूर्णांक
आर्ग्यूमेंटटाइपविवरण
यह: collectionFeatureCollectionगिनती करने के लिए कलेक्शन.

उदाहरण

कोड एडिटर (JavaScript)

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

print('Number of power plants in Belgium', fc.size());

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