지정된 '색상' 값을 사용하여 컬렉션의 기하 도형을 이미지에 페인트합니다. 기하 도형이 이미지를 덮는 경우 (또는 선 너비가 지정된 경우 둘레가 덮는 경우) 각 밴드의 값을 대체합니다.
이 알고리즘은 피처 속성의 범주형 데이터를 이미지의 픽셀로 변환하는 데 가장 적합합니다. 컬렉션을 시각화하려면 RGB 색상을 지원하는 FeatureCollection.style을 대신 사용하는 것이 좋습니다. 이 알고리즘은 단일 숫자 값을 사용하는 '흑백'이기 때문입니다.
사용
반환 값
Image.paint(featureCollection, color, width)
이미지
인수
유형
세부정보
다음과 같은 경우: image
이미지
컬렉션이 그려진 이미지입니다.
featureCollection
FeatureCollection
이미지에 페인팅된 컬렉션입니다.
color
객체, 기본값: 0
입력 이미지의 모든 밴드에 페인트할 픽셀 값입니다. 모든 특성에 사용될 숫자이거나 컬렉션의 각 특성에서 가져올 숫자 속성의 이름입니다.
width
객체, 기본값: null
선 너비입니다. 모든 도형의 선 너비가 될 숫자 또는 컬렉션의 각 피처에서 가져올 숫자 속성의 이름입니다. 지정하지 않으면 기하 도형이 윤곽선이 아닌 채워진 상태로 표시됩니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-26(UTC)"],[[["Paints geometries from a FeatureCollection onto an image, replacing pixel values with a specified color or property value where geometries overlap."],["Ideal for converting categorical feature data to image pixels, offering a monochrome visualization."],["Offers options to fill geometries or outline them using a specified line width, which can be uniform or vary based on feature properties."],["Uses a single color value for all bands of the image, making it suitable for thematic mapping and data representation rather than visual styling."],["For visualizing collections with RGB colors and more styling options, FeatureCollection.style is recommended as a more suitable alternative."]]],[]]