公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
REST Resource: projects.thumbnails
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:缩略图
字段 |
name |
string
表示缩略图的资源名称,格式为“projects/*/thumbnails/**”(例如“projects/earthengine-legacy/thumbnails/”)。
|
expression |
object (Expression )
要计算的表达式。必须计算为 Image。
|
fileFormat |
enum (ImageFileFormat )
用于生成最终图片的输出编码。
|
bandIds[] |
string
如果存在,则指定要从评估 expression 的结果中选择的一组特定频段。如果未指定,则系统会选择 expression 产生的所有频段。
|
visualizationOptions |
object (VisualizationOptions )
一组可视化选项(如果有),用于生成数据的 8 位 RGB 可视化图表。
|
grid |
object (PixelGrid )
一个可选的像素网格,用于描述由 expression 计算的图片的重新投影和剪裁方式。
|
filenamePrefix |
string
仅在 fileFormat 为 ZIPPED_GEO_TIFF 或 ZIPPED_GEO_TIFF_PER_BAND 时使用。
|
方法 |
|
创建一个 ID,用于呈现“缩略图”图片。 |
|
计算显示计算结果的图片。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eA thumbnail resource represents an image generated from an Earth Engine expression.\u003c/p\u003e\n"],["\u003cp\u003eThumbnails can be customized by specifying file format, band selection, visualization options, and pixel grid.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a thumbnail ID and render it or retrieve the pixel data directly.\u003c/p\u003e\n"],["\u003cp\u003eThe thumbnail resource uses a JSON representation with fields like name, expression, fileFormat, bandIds, visualizationOptions, grid, and filenamePrefix.\u003c/p\u003e\n"],["\u003cp\u003eAvailable methods for interacting with thumbnails include \u003ccode\u003ecreate\u003c/code\u003e for initiating a thumbnail and \u003ccode\u003egetPixels\u003c/code\u003e for retrieving the pixel data.\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.thumbnails\n\nResource: Thumbnail\n-------------------\n\nInformation about a thumbnail.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"expression\": { object (/earth-engine/reference/rest/v1alpha/Expression) }, \"fileFormat\": enum (/earth-engine/reference/rest/v1alpha/ImageFileFormat), \"bandIds\": [ string ], \"visualizationOptions\": { object (/earth-engine/reference/rest/v1alpha/VisualizationOptions) }, \"grid\": { object (/earth-engine/reference/rest/v1alpha/PixelGrid) }, \"filenamePrefix\": string } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource name representing the thumbnail, of the form \"projects/\\*/thumbnails/\\*\\*\" (e.g. \"projects/earthengine-legacy/thumbnails/\"). |\n| `expression` | `object (`[Expression](/earth-engine/reference/rest/v1alpha/Expression)`)` The expression to compute. Must evaluate to an Image. |\n| `fileFormat` | `enum (`[ImageFileFormat](/earth-engine/reference/rest/v1alpha/ImageFileFormat)`)` The output encoding in which to generate the resulting image. |\n| `bandIds[]` | `string` If present, specifies a specific set of bands that will be selected from the result of evaluating `expression`. If not present, all bands resulting from `expression` will be selected. |\n| `visualizationOptions` | `object (`[VisualizationOptions](/earth-engine/reference/rest/v1alpha/VisualizationOptions)`)` If present, a set of visualization options to apply to produce an 8-bit RGB visualization of the data. |\n| `grid` | `object (`[PixelGrid](/earth-engine/reference/rest/v1alpha/PixelGrid)`)` An optional pixel grid describing how the image computed by `expression` is reprojected and clipped. |\n| `filenamePrefix` | `string` Only used when fileFormat is ZIPPED_GEO_TIFF or ZIPPED_GEO_TIFF_PER_BAND. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| ### [create](/earth-engine/reference/rest/v1alpha/projects.thumbnails/create) | Creates an ID that can be used to render a \"thumbnail\" image. |\n| ### [getPixels](/earth-engine/reference/rest/v1alpha/projects.thumbnails/getPixels) | Computes an image showing the result of a computation. |"]]