ee.FeatureCollection.toDictionary

特徴からプロパティをディクショナリとして抽出します。

用途戻り値
FeatureCollection.toDictionary(properties)Dictionary
引数タイプ詳細
これ: 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())