公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.data.getThumbId
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
取得指定素材資源的縮圖 ID。
傳回縮圖 ID 和選用權杖,如指定回呼則傳回空值。
用量 | 傳回 |
---|
ee.data.getThumbId(params, callback) | ThumbnailId |
引數 | 類型 | 詳細資料 |
---|
params | ThumbnailOptions | 包含縮圖選項的物件,可能的值如下:
image (ee.Image) 要製作縮圖的圖片。 |
bands (字串陣列):樂團名稱陣列。 |
format (字串) 檔案格式 (「png」、「jpg」、「geotiff」)。 |
name (字串):基本名稱。 |
使用 ee.Image.getThumbURL 支援區域、尺寸和視覺化選項。 |
callback | 函式 (選用) | 選用回呼。如未提供,系統會同步發出呼叫。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003eee.data.getThumbId\u003c/code\u003e function retrieves the thumbnail ID and optional token for a given Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eIt requires thumbnail options as parameters, including the image, band names, file format, and base name.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eee.Image.getThumbURL\u003c/code\u003e for specifying region, dimensions, and visualization parameters when generating thumbnail URLs.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns the ThumbnailId object or null if a callback function is provided.\u003c/p\u003e\n"]]],[],null,["# ee.data.getThumbId\n\n\u003cbr /\u003e\n\nGet a Thumbnail Id for a given asset.\n\n\u003cbr /\u003e\n\nReturns the thumb ID and optional token, or null if a callback is specified.\n\n| Usage | Returns |\n|--------------------------------------------|-------------|\n| `ee.data.getThumbId(params, `*callback*`)` | ThumbnailId |\n\n| Argument | Type | Details |\n|------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | ThumbnailOptions | An object containing thumbnail options with the following possible values: |----------------------------------------------------------------| | ` image ` (ee.Image) The image to make a thumbnail. | | ` bands ` (array of strings) An array of band names. | | ` format ` (string) The file format (\"png\", \"jpg\", \"geotiff\"). | | ` name ` (string): The base name. | Use ee.Image.getThumbURL for region, dimensions, and visualization options support. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]