ee.FeatureCollection.get

특성에서 속성을 추출합니다.

사용반환 값
FeatureCollection.get(property)
인수유형세부정보
다음과 같은 경우: object요소속성을 추출할 기능입니다.
property문자열추출할 속성입니다.

코드 편집기 (JavaScript)

// A global power plant FeatureCollection.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');

// View a list of FeatureCollection property names.
print(fc.propertyNames());

// Get the value of a listed property.
print('Global power plant data provider as ee.ComputedObject',
      fc.get('provider'));

// The returned value is an ee.ComputedObject which has no methods available for
// further processing; cast to the relevant Earth Engine object class for use.
print('Global power plant data provider as ee.String',
      ee.String(fc.get('provider')));

Python 설정

Python API 및 geemap를 사용한 대화형 개발에 관한 자세한 내용은 Python 환경 페이지를 참고하세요.

import ee
import geemap.core as geemap

Colab (Python)

# A global power plant FeatureCollection.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')

# View a list of FeatureCollection property names.
print(fc.propertyNames().getInfo())

# Get the value of a listed property.
print('Global power plant data provider as ee.ComputedObject:',
      fc.get('provider').getInfo())

# The returned value is an ee.ComputedObject which has no methods available for
# further processing; cast to the relevant Earth Engine object class for use.
print('Global power plant data provider as ee.String:',
      ee.String(fc.get('provider')).getInfo())