公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
VisualizationOptions
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
介绍如何生成请求数据的 8 位 RGB 可视化图表。
JSON 表示法 |
{
"ranges": [
{
object (DoubleRange )
}
],
"paletteColors": [
string
],
"gamma": number,
"opacity": number
} |
字段 |
ranges[] |
object (DoubleRange )
如果存在,则指定要可视化的数据值范围。此范围的值将在生成的图片中映射到 0-255(黑到白),超出此范围的值将被钳制。可以为要可视化的每个波段指定一个范围,也可以指定一个范围来应用于所有波段。
|
paletteColors[] |
string
如果存在,则指定要作为调色板应用的 CSS 样式 RGB 颜色标识符序列。仅在可视化单个数据带时允许。
|
gamma |
number
如果存在,则指定要应用于图片的整体伽玛校正系数。
|
opacity |
number
如果存在,则指定要应用于图片的整体不透明度系数,范围为 0.0 到 1.0。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eVisualizes data as an 8-bit RGB image by mapping data values to colors.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization through ranges, color palettes, gamma correction, and opacity.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eranges\u003c/code\u003e defines the data value range for visualization, mapping values to 0-255 (black to white).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003epaletteColors\u003c/code\u003e applies a color palette for single-band visualization using CSS-style RGB identifiers.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egamma\u003c/code\u003e and \u003ccode\u003eopacity\u003c/code\u003e control the overall image appearance by adjusting gamma correction and transparency, respectively.\u003c/p\u003e\n"]]],[],null,["# VisualizationOptions\n\nDescribes how to produce an 8-bit RGB visualization of the requested data.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"ranges\": [ { object (/earth-engine/reference/rest/v1/DoubleRange) } ], \"paletteColors\": [ string ], \"gamma\": number, \"opacity\": number } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ranges[]` | `object (`[DoubleRange](/earth-engine/reference/rest/v1/DoubleRange)`)` If present, specifies the range of data values to visualize. This range of values will be mapped to 0-255 (black to white) in the resulting image, and values outside this range will be clamped. May specify as one range for each band being visualized or else a single range to be applied to all bands. |\n| `paletteColors[]` | `string` If present, specifies sequence of CSS-style RGB color identifiers to apply as a color palette. Only allowed when visualizing a single data band. |\n| `gamma` | `number` If present, specifies an overall gamma correction factor to apply to the image. |\n| `opacity` | `number` If present, specifies an overall opacity factor to apply to the image, in the range 0.0 to 1.0. |"]]