ee.FeatureCollection.toDictionary

किसी सुविधा से प्रॉपर्टी को डिक्शनरी के तौर पर एक्सट्रैक्ट करें.

इस्तेमालरिटर्न
FeatureCollection.toDictionary(properties)शब्दकोश
आर्ग्यूमेंटटाइपविवरण
यह: elementएलिमेंटवह सुविधा जिससे प्रॉपर्टी को निकालना है.
propertiesसूची, डिफ़ॉल्ट: nullएक्सट्रैक्ट की जाने वाली प्रॉपर्टी की सूची. डिफ़ॉल्ट रूप से, यह सभी नॉन-सिस्टम प्रॉपर्टी के लिए लागू होता है.

उदाहरण

कोड एडिटर (JavaScript)

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

print('All non-system FeatureCollection properties as an ee.Dictionary',
      fc.toDictionary());
print('Selected properties as an ee.Dictionary',
      fc.toDictionary(['description', 'provider']));

Python सेटअप करना

Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए, Python एनवायरमेंट पेज देखें.

import ee
import geemap.core as geemap

Colab (Python)

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

print('All non-system FeatureCollection properties as an ee.Dictionary:',
      fc.toDictionary().getInfo())
print('Selected properties as an ee.Dictionary:',
      fc.toDictionary(['description', 'provider']).getInfo())