ee.FeatureCollection.aggregate_array

컬렉션에 있는 객체의 지정된 속성을 집계하여 선택한 속성의 모든 값 목록을 계산합니다.

사용반환 값
FeatureCollection.aggregate_array(property)목록
인수유형세부정보
다음과 같은 경우: collectionFeatureCollection집계할 컬렉션입니다.
property문자열컬렉션의 각 요소에서 사용할 속성입니다.

코드 편집기 (JavaScript)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');

print('Power plant fuel sources',
      fc.aggregate_array('fuel1'));  // ee.List

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
    'country_lg == "Belgium"')

print('Power plant fuel sources:',
      fc.aggregate_array('fuel1').getInfo())  # ee.List