ee.FeatureCollection.first

지정된 컬렉션의 첫 번째 항목을 반환합니다.

사용반환 값
FeatureCollection.first()요소
인수유형세부정보
다음과 같은 경우: collectionFeatureCollection첫 번째 항목을 선택할 컬렉션입니다.

코드 편집기 (JavaScript)

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

print('The first feature (power plant) in the collection', fc.first());

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

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

print('The first feature (power plant) in the collection:')
pprint(fc.first().getInfo())