ee.FeatureCollection.toDictionary

Wyodrębnij właściwości z obiektu jako słownik.

WykorzystanieZwroty
FeatureCollection.toDictionary(properties)Słownik
ArgumentTypSzczegóły
to: elementElementObiekt, z którego ma zostać wyodrębniona właściwość.
propertiesLista, domyślna: nullLista właściwości do wyodrębnienia. Domyślnie są to wszystkie usługi inne niż systemowe.

Przykłady

Edytor kodu (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']));

Konfiguracja Pythona

Informacje o interfejsie Python API i używaniu geemap do interaktywnego programowania znajdziesz na stronie Środowisko 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())