공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
지형지물 및 FeatureCollection 시각화
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이미지, 도형, 지형지물과 마찬가지로 지형지물 컬렉션은 Map.addLayer()
를 사용하여 지도에 직접 추가할 수 있습니다. 기본 시각화에는 검은색 실선과 반투명 검은색 채움이 적용된 벡터가 표시됩니다. 벡터를 색상으로 렌더링하려면 color
매개변수를 지정합니다. 다음은 'RESOLVE' 생태지역(Dinerstein et al. 2017)을 기본 시각화로 빨간색으로 표시합니다.
코드 편집기 (JavaScript)
// Load a FeatureCollection from a table dataset: 'RESOLVE' ecoregions.
var ecoregions = ee.FeatureCollection('RESOLVE/ECOREGIONS/2017');
// Display as default and with a custom color.
Map.addLayer(ecoregions, {}, 'default display');
Map.addLayer(ecoregions, {color: 'FF0000'}, 'colored');
Python 설정
Python API 및 대화형 개발을 위한 geemap
사용에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# Load a FeatureCollection from a table dataset: 'RESOLVE' ecoregions.
ecoregions = ee.FeatureCollection('RESOLVE/ECOREGIONS/2017')
# Display as default and with a custom color.
m = geemap.Map()
m.set_center(-76.2486, 44.8988, 8)
m.add_layer(ecoregions, {}, 'default display')
m.add_layer(ecoregions, {'color': 'FF0000'}, 'colored')
m
추가 표시 옵션을 보려면 featureCollection.draw()
를 사용합니다. 특히 매개변수 pointRadius
및 strokeWidth
는 렌더링된 FeatureCollection
에서 각각 점과 선의 크기를 제어합니다.
코드 편집기 (JavaScript)
Map.addLayer(ecoregions.draw({color: '006600', strokeWidth: 5}), {}, 'drawn');
Python 설정
Python API 및 대화형 개발을 위한 geemap
사용에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
m.add_layer(ecoregions.draw(color='006600', strokeWidth=5), {}, 'drawn')
draw()
의 출력은 지정된 color
매개변수에 따라 빨간색, 녹색, 파란색 밴드가 설정된 이미지입니다.
FeatureCollection
의 표시 방식을 더 세부적으로 제어하려면 FeatureCollection
를 인수로 사용하여 image.paint()
를 사용하세요. 3밴드 8비트 디스플레이 이미지를 출력하는 draw()
와 달리 image.paint()
은 지정된 숫자 값이 '페인팅된' 이미지를 출력합니다. 또는 페인트할 숫자가 포함된 속성의 이름을 FeatureCollection
에 제공할 수 있습니다. width
매개변수도 동일한 방식으로 작동합니다. 상수이거나 선 너비 숫자가 있는 속성의 이름일 수 있습니다. 예를 들면 다음과 같습니다.
코드 편집기 (JavaScript)
// Create an empty image into which to paint the features, cast to byte.
var empty = ee.Image().byte();
// Paint all the polygon edges with the same number and width, display.
var outline = empty.paint({
featureCollection: ecoregions,
color: 1,
width: 3
});
Map.addLayer(outline, {palette: 'FF0000'}, 'edges');
Python 설정
Python API 및 대화형 개발을 위한 geemap
사용에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# Create an empty image into which to paint the features, cast to byte.
empty = ee.Image().byte()
# Paint all the polygon edges with the same number and width, display.
outline = empty.paint(featureCollection=ecoregions, color=1, width=3)
m.add_layer(outline, {'palette': 'FF0000'}, 'edges')
지형지물을 그리는 빈 이미지는 그리기 전에 전송해야 합니다. 이는 상수 이미지가 상수처럼 작동하기 때문입니다. 즉, 초기화 값으로 제한됩니다. 지형지물의 속성에서 설정된 값으로 지형지물 가장자리의 색상을 지정하려면 색상 매개변수를 숫자 값이 있는 속성 이름으로 설정합니다.
코드 편집기 (JavaScript)
// Paint the edges with different colors, display.
var outlines = empty.paint({
featureCollection: ecoregions,
color: 'BIOME_NUM',
width: 4
});
var palette = ['FF0000', '00FF00', '0000FF'];
Map.addLayer(outlines, {palette: palette, max: 14}, 'different color edges');
Python 설정
Python API 및 대화형 개발을 위한 geemap
사용에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# Paint the edges with different colors, display.
outlines = empty.paint(featureCollection=ecoregions, color='BIOME_NUM', width=4)
palette = ['FF0000', '00FF00', '0000FF']
m.add_layer(outlines, {'palette': palette, 'max': 14}, 'different color edges')
경계가 그려지는 색상과 너비는 모두 속성으로 설정할 수 있습니다.
예를 들면 다음과 같습니다.
코드 편집기 (JavaScript)
// Paint the edges with different colors and widths.
var outlines = empty.paint({
featureCollection: ecoregions,
color: 'BIOME_NUM',
width: 'NNH'
});
Map.addLayer(outlines, {palette: palette, max: 14}, 'different color, width edges');
Python 설정
Python API 및 대화형 개발을 위한 geemap
사용에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# Paint the edges with different colors and widths.
outlines = empty.paint(
featureCollection=ecoregions, color='BIOME_NUM', width='NNH'
)
m.add_layer(
outlines, {'palette': palette, 'max': 14}, 'different color, width edges'
)
width
매개변수를 제공하지 않으면 지형지물 내부가 페인팅됩니다.
코드 편집기 (JavaScript)
// Paint the interior of the polygons with different colors.
var fills = empty.paint({
featureCollection: ecoregions,
color: 'BIOME_NUM',
});
Map.addLayer(fills, {palette: palette, max: 14}, 'colored fills');
Python 설정
Python API 및 대화형 개발을 위한 geemap
사용에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# Paint the interior of the polygons with different colors.
fills = empty.paint(featureCollection=ecoregions, color='BIOME_NUM')
m.add_layer(fills, {'palette': palette, 'max': 14}, 'colored fills')
지형지물의 내부와 가장자리를 모두 렌더링하려면 빈 이미지를 두 번 칠합니다.
코드 편집기 (JavaScript)
// Paint both the fill and the edges.
var filledOutlines = empty.paint(ecoregions, 'BIOME_NUM').paint(ecoregions, 0, 2);
Map.addLayer(filledOutlines, {palette: ['000000'].concat(palette), max: 14}, 'edges and fills');
Python 설정
Python API 및 대화형 개발을 위한 geemap
사용에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# Paint both the fill and the edges.
filled_outlines = empty.paint(ecoregions, 'BIOME_NUM').paint(ecoregions, 0, 2)
m.add_layer(
filled_outlines,
{'palette': ['000000'] + palette, 'max': 14},
'edges and fills',
)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eFeature collections in Earth Engine can be directly added to the map and customized with color using \u003ccode\u003eMap.addLayer()\u003c/code\u003e and the \u003ccode\u003ecolor\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003efeatureCollection.draw()\u003c/code\u003e provides further customization, controlling point and line sizes with \u003ccode\u003epointRadius\u003c/code\u003e and \u003ccode\u003estrokeWidth\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eimage.paint()\u003c/code\u003e offers advanced rendering by 'painting' numeric values or feature properties onto an image, enabling control over fill and edge visualization.\u003c/p\u003e\n"],["\u003cp\u003eFeature boundaries can be styled with varying colors and widths by specifying feature properties for the \u003ccode\u003ecolor\u003c/code\u003e and \u003ccode\u003ewidth\u003c/code\u003e parameters in \u003ccode\u003eimage.paint()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003ePainting an image with a feature collection without specifying \u003ccode\u003ewidth\u003c/code\u003e fills the feature interiors, while subsequent painting can add edges for a combined visualization.\u003c/p\u003e\n"]]],[],null,["# Feature and FeatureCollection Visualization\n\nAs with images, geometries and features, feature collections can be added to the map\ndirectly with `Map.addLayer()`. The default visualization will display the\nvectors with solid black lines and semi-opaque black fill. To render the vectors in color,\nspecify the `color` parameter. The following displays the 'RESOLVE' ecoregions\n([Dinerstein\net al. 2017](https://academic.oup.com/bioscience/article/67/6/534/3102935)) as the default visualization and in red:\n\n### Code Editor (JavaScript)\n\n```javascript\n// Load a FeatureCollection from a table dataset: 'RESOLVE' ecoregions.\nvar ecoregions = ee.FeatureCollection('RESOLVE/ECOREGIONS/2017');\n\n// Display as default and with a custom color.\nMap.addLayer(ecoregions, {}, 'default display');\nMap.addLayer(ecoregions, {color: 'FF0000'}, 'colored');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# Load a FeatureCollection from a table dataset: 'RESOLVE' ecoregions.\necoregions = ee.FeatureCollection('RESOLVE/ECOREGIONS/2017')\n\n# Display as default and with a custom color.\nm = geemap.Map()\nm.set_center(-76.2486, 44.8988, 8)\nm.add_layer(ecoregions, {}, 'default display')\nm.add_layer(ecoregions, {'color': 'FF0000'}, 'colored')\nm\n```\n\nFor additional display options, use `featureCollection.draw()`. Specifically,\nparameters `pointRadius` and `strokeWidth` control the size of points\nand lines, respectively, in the rendered `FeatureCollection`:\n\n### Code Editor (JavaScript)\n\n```javascript\nMap.addLayer(ecoregions.draw({color: '006600', strokeWidth: 5}), {}, 'drawn');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\nm.add_layer(ecoregions.draw(color='006600', strokeWidth=5), {}, 'drawn')\n```\n\nThe output of `draw()` is an image with red, green and blue bands set according\nto the specified `color` parameter.\n\nFor more control over how a `FeatureCollection` is displayed, use\n`image.paint()` with the `FeatureCollection` as an argument. Unlike\n`draw()`, which outputs a three-band, 8-bit display image,\n`image.paint()` outputs an image with the specified numeric value 'painted'\ninto it. Alternatively, you can supply the name of a property in the\n`FeatureCollection` which contains the numbers to paint. The `width`\nparameter behaves the same way: it can be a constant or the name of a property with a\nnumber for the line width. For example:\n\n### Code Editor (JavaScript)\n\n```javascript\n// Create an empty image into which to paint the features, cast to byte.\nvar empty = ee.Image().byte();\n\n// Paint all the polygon edges with the same number and width, display.\nvar outline = empty.paint({\n featureCollection: ecoregions,\n color: 1,\n width: 3\n});\nMap.addLayer(outline, {palette: 'FF0000'}, 'edges');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# Create an empty image into which to paint the features, cast to byte.\nempty = ee.Image().byte()\n\n# Paint all the polygon edges with the same number and width, display.\noutline = empty.paint(featureCollection=ecoregions, color=1, width=3)\nm.add_layer(outline, {'palette': 'FF0000'}, 'edges')\n```\n\nNote that the empty image into which you paint the features needs to be cast prior to\npainting. This is because a constant image behaves as a constant: it is clamped to the\ninitialization value. To color the feature edges with values set from a property of the\nfeatures, set the color parameter to the name of the property with numeric values:\n\n### Code Editor (JavaScript)\n\n```javascript\n// Paint the edges with different colors, display.\nvar outlines = empty.paint({\n featureCollection: ecoregions,\n color: 'BIOME_NUM',\n width: 4\n});\nvar palette = ['FF0000', '00FF00', '0000FF'];\nMap.addLayer(outlines, {palette: palette, max: 14}, 'different color edges');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# Paint the edges with different colors, display.\noutlines = empty.paint(featureCollection=ecoregions, color='BIOME_NUM', width=4)\npalette = ['FF0000', '00FF00', '0000FF']\nm.add_layer(outlines, {'palette': palette, 'max': 14}, 'different color edges')\n```\n\nBoth the color and width with which the boundaries are drawn can be set with properties.\nFor example:\n\n### Code Editor (JavaScript)\n\n```javascript\n// Paint the edges with different colors and widths.\nvar outlines = empty.paint({\n featureCollection: ecoregions,\n color: 'BIOME_NUM',\n width: 'NNH'\n});\nMap.addLayer(outlines, {palette: palette, max: 14}, 'different color, width edges');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# Paint the edges with different colors and widths.\noutlines = empty.paint(\n featureCollection=ecoregions, color='BIOME_NUM', width='NNH'\n)\nm.add_layer(\n outlines, {'palette': palette, 'max': 14}, 'different color, width edges'\n)\n```\n\nIf the `width` parameter is not provided, the interior of the features is\npainted:\n\n### Code Editor (JavaScript)\n\n```javascript\n// Paint the interior of the polygons with different colors.\nvar fills = empty.paint({\n featureCollection: ecoregions,\n color: 'BIOME_NUM',\n});\nMap.addLayer(fills, {palette: palette, max: 14}, 'colored fills');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# Paint the interior of the polygons with different colors.\nfills = empty.paint(featureCollection=ecoregions, color='BIOME_NUM')\nm.add_layer(fills, {'palette': palette, 'max': 14}, 'colored fills')\n```\n\nTo render both the interior and edges of the features, paint the empty image twice:\n\n### Code Editor (JavaScript)\n\n```javascript\n// Paint both the fill and the edges.\nvar filledOutlines = empty.paint(ecoregions, 'BIOME_NUM').paint(ecoregions, 0, 2);\nMap.addLayer(filledOutlines, {palette: ['000000'].concat(palette), max: 14}, 'edges and fills');\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# Paint both the fill and the edges.\nfilled_outlines = empty.paint(ecoregions, 'BIOME_NUM').paint(ecoregions, 0, 2)\nm.add_layer(\n filled_outlines,\n {'palette': ['000000'] + palette, 'max': 14},\n 'edges and fills',\n)\n```"]]