公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
REST Resource: projects.locations.thumbnails
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:縮圖
欄位 |
name |
string
代表縮圖的資源名稱,格式為「projects/*/thumbnails/**」(例如「projects/earthengine-legacy/thumbnails/")。
|
expression |
object (Expression )
要計算的運算式。必須評估為圖片。
|
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 時使用。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThumbnails are generated from an expression that evaluates to an Earth Engine Image.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify visualization options, file format, and band selection for the thumbnail.\u003c/p\u003e\n"],["\u003cp\u003eThumbnails can be reprojected and clipped using a pixel grid.\u003c/p\u003e\n"],["\u003cp\u003eAn API method is available to create and render thumbnail images.\u003c/p\u003e\n"]]],["This document details the structure and creation of thumbnails. Key elements include: `name` (resource identifier), `expression` (image computation), `fileFormat` (output encoding), `bandIds` (specific band selection), `visualizationOptions` (8-bit RGB visualization settings), `grid` (image reprojection/clipping), and `filenamePrefix` (for zipped formats). It describes the JSON structure of a thumbnail and provides information on the fields. Additionally, it states the `create` method, which generates an ID for rendering a thumbnail image.\n"],null,["# REST Resource: projects.locations.thumbnails\n\nResource: Thumbnail\n-------------------\n\nInformation about a thumbnail.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"expression\": { object (/earth-engine/reference/rest/v1/Expression) }, \"fileFormat\": enum (/earth-engine/reference/rest/v1/ImageFileFormat), \"bandIds\": [ string ], \"visualizationOptions\": { object (/earth-engine/reference/rest/v1/VisualizationOptions) }, \"grid\": { object (/earth-engine/reference/rest/v1/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/v1/Expression)`)` The expression to compute. Must evaluate to an Image. |\n| `fileFormat` | `enum (`[ImageFileFormat](/earth-engine/reference/rest/v1/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/v1/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/v1/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/v1/projects.locations.thumbnails/create) | Creates an ID that can be used to render a \"thumbnail\" image. |"]]