ee.FeatureCollection.toDictionary

Extract properties from a feature as a dictionary.

שימושהחזרות
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 Environment.

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())