공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Image.paint
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
지정된 '색상' 값을 사용하여 컬렉션의 기하 도형을 이미지에 페인트합니다. 기하 도형이 이미지를 덮는 경우 (또는 선 너비가 지정된 경우 둘레가 덮는 경우) 각 밴드의 값을 대체합니다.
이 알고리즘은 피처 속성의 범주형 데이터를 이미지의 픽셀로 변환하는 데 가장 적합합니다. 컬렉션을 시각화하려면 RGB 색상을 지원하는 FeatureCollection.style을 대신 사용하는 것이 좋습니다. 이 알고리즘은 단일 숫자 값을 사용하는 '흑백'이기 때문입니다.
사용 | 반환 값 |
---|
Image.paint(featureCollection, color, width) | 이미지 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: image | 이미지 | 컬렉션이 그려진 이미지입니다. |
featureCollection | FeatureCollection | 이미지에 페인팅된 컬렉션입니다. |
color | 객체, 기본값: 0 | 입력 이미지의 모든 밴드에 페인트할 픽셀 값입니다. 모든 특성에 사용될 숫자이거나 컬렉션의 각 특성에서 가져올 숫자 속성의 이름입니다. |
width | 객체, 기본값: null | 선 너비입니다. 모든 도형의 선 너비가 될 숫자 또는 컬렉션의 각 피처에서 가져올 숫자 속성의 이름입니다. 지정하지 않으면 기하 도형이 윤곽선이 아닌 채워진 상태로 표시됩니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003ePaints geometries from a FeatureCollection onto an image, replacing pixel values with a specified color or property value where geometries overlap.\u003c/p\u003e\n"],["\u003cp\u003eIdeal for converting categorical feature data to image pixels, offering a monochrome visualization.\u003c/p\u003e\n"],["\u003cp\u003eOffers options to fill geometries or outline them using a specified line width, which can be uniform or vary based on feature properties.\u003c/p\u003e\n"],["\u003cp\u003eUses a single color value for all bands of the image, making it suitable for thematic mapping and data representation rather than visual styling.\u003c/p\u003e\n"],["\u003cp\u003eFor visualizing collections with RGB colors and more styling options, FeatureCollection.style is recommended as a more suitable alternative.\u003c/p\u003e\n"]]],[],null,["# ee.Image.paint\n\nPaints the geometries of a collection onto an image, using the given 'color' value to replace each band's values where any geometry covers the image (or, if a line width is specified, where the perimeters do).\n\n\u003cbr /\u003e\n\nThis algorithm is most suitable for converting categorical data from feature properties to pixels in an image; if you wish to visualize a collection, consider using FeatureCollection.style instead, which supports RGB colors whereas this algorithm is strictly 'monochrome' (using single numeric values).\n\n| Usage | Returns |\n|---------------------------------------------------------|---------|\n| Image.paint`(featureCollection, `*color* `, `*width*`)` | Image |\n\n| Argument | Type | Details |\n|---------------------|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image on which the collection is painted. |\n| `featureCollection` | FeatureCollection | The collection painted onto the image. |\n| `color` | Object, default: 0 | The pixel value to paint into every band of the input image, either as a number which will be used for all features, or the name of a numeric property to take from each feature in the collection. |\n| `width` | Object, default: null | Line width, either as a number which will be the line width for all geometries, or the name of a numeric property to take from each feature in the collection. If unspecified, the geometries will be filled instead of outlined. |"]]