ee.FeatureCollection.toDictionary

Bir özellikten sözlük olarak özellikler ayıklayın.

Kullanımİadeler
FeatureCollection.toDictionary(properties)Sözlük
Bağımsız DeğişkenTürAyrıntılar
bu: elementÖğeÖzelliğin ayıklanacağı öğe.
propertiesListe, varsayılan: nullAyıklanacak özelliklerin listesi. Varsayılan olarak sistem dışı tüm özellikler gösterilir.

Örnekler

Kod Düzenleyici (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 kurulumu

Python API'si ve etkileşimli geliştirme için geemap kullanımı hakkında bilgi edinmek üzere Python Ortamı sayfasına bakın.

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