ee.FeatureCollection.geometry

컬렉션의 도형을 추출하고 병합합니다. 컬렉션의 모든 지오메트리가 투영 및 가장자리 해석을 공유해야 합니다.

사용반환 값
FeatureCollection.geometry(maxError)도형
인수유형세부정보
다음과 같은 경우: collectionFeatureCollection도형을 추출할 컬렉션입니다.
maxErrorErrorMargin(선택사항)지오메트리를 병합할 때 사용할 오류 여백입니다.

코드 편집기 (JavaScript)

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

print("Point FeatureCollection's geometry", fc.geometry());

Python 설정

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

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

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

print("Point FeatureCollection's geometry:")
pprint(fc.geometry().getInfo())