公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.ImageCollection.draw
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
绘制用于可视化的矢量集合。不适合用作其他算法的输入。
用法 | 返回 |
---|
ImageCollection.draw(color, pointRadius, strokeWidth) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:collection | FeatureCollection | 要绘制的集合。 |
color | 字符串 | 一种格式为 RRGGBB 的十六进制字符串,用于指定绘制地图项时要使用的颜色。 |
pointRadius | 整数,默认值:3 | 点标记的半径(以像素为单位)。 |
strokeWidth | 整数,默认值:2 | 线条和多边形边框的宽度(以像素为单位)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eImageCollection.draw()\u003c/code\u003e visualizes FeatureCollections as vector data, outputting an Image.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a color (hex string: RRGGBB), point radius (default 3 pixels), and stroke width (default 2 pixels) for customization.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily for display, not designed for algorithmic input.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.draw\n\nPaints a vector collection for visualization. Not intended for use as input to other algorithms.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------|---------|\n| ImageCollection.draw`(color, `*pointRadius* `, `*strokeWidth*`)` | Image |\n\n| Argument | Type | Details |\n|--------------------|---------------------|-----------------------------------------------------------------------------------------|\n| this: `collection` | FeatureCollection | The collection to draw. |\n| `color` | String | A hex string in the format RRGGBB specifying the color to use for drawing the features. |\n| `pointRadius` | Integer, default: 3 | The radius in pixels of the point markers. |\n| `strokeWidth` | Integer, default: 2 | The width in pixels of lines and polygon borders. |"]]