ee.FeatureCollection.bounds

컬렉션의 도형 주위에 경계 상자를 구성합니다.

사용반환 값
FeatureCollection.bounds(maxError, proj)도형
인수유형세부정보
다음과 같은 경우: collectionFeatureCollection경계가 생성될 컬렉션입니다.
maxErrorErrorMargin(선택사항)필요한 재투영을 실행할 때 허용되는 최대 오류량입니다.
proj투영(선택사항)지정된 경우 결과는 이 투영에 표시됩니다. 그렇지 않으면 EPSG:4326입니다.

코드 편집기 (JavaScript)

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

print('Bounds of Belgium power plants:', fc.bounds());  // ee.Geometry

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('Bounds of Belgium power plants:', fc.bounds().getInfo())  # ee.Geometry