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