ee.FeatureCollection.aggregate_max

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

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

코드 편집기 (JavaScript)

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

print('Max of power plant capacities (MW)',
      fc.aggregate_max('capacitymw'));  // 2910

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('Max of power plant capacities (MW):',
      fc.aggregate_max('capacitymw').getInfo())  # 2910