ee.FeatureCollection.draw

시각화를 위해 벡터 컬렉션을 페인트합니다. 다른 알고리즘의 입력으로 사용하기 위한 것이 아닙니다.

사용반환 값
FeatureCollection.draw(color, pointRadius, strokeWidth)이미지
인수유형세부정보
다음과 같은 경우: collectionFeatureCollection그릴 컬렉션입니다.
color문자열지형지물을 그리는 데 사용할 색상을 지정하는 RRGGBB 형식의 16진수 문자열입니다.
pointRadius정수, 기본값: 3점 마커의 반지름(픽셀)입니다.
strokeWidth정수, 기본값: 2선과 다각형 테두리의 너비(픽셀)입니다.

코드 편집기 (JavaScript)

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

// Paint FeatureCollection to an image for visualization.
var fcVis = fc.draw({color: '800080', pointRadius: 5, strokeWidth: 3});
Map.setCenter(4.56, 50.78, 8);
Map.addLayer(fcVis);

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"'
)

# Paint FeatureCollection to an image for visualization.
fc_vis = fc.draw(color='800080', pointRadius=5, strokeWidth=3)
m = geemap.Map()
m.set_center(4.56, 50.78, 8)
m.add_layer(fc_vis)
m