公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.ImageCollection.getVideoThumbURL
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
取得這個 ImageCollection 的動畫縮圖網址。
傳回縮圖網址,或在指定回呼時傳回未定義。
用量 | 傳回 |
---|
ImageCollection.getVideoThumbURL(params, callback) | Object|String |
引數 | 類型 | 詳細資料 |
---|
這個:imagecollection | ImageCollection | ImageCollection 執行個體。 |
params | 物件 | 與 ee.data.getMapId 相同的參數,外加選用參數:
dimensions (數字或以「WIDTHxHEIGHT」格式表示的一組數字) 要算繪的縮圖尺寸上限 (以像素為單位)。如果只傳遞一個數字,系統會將其做為最大值,並透過比例縮放計算其他維度。 |
region (E、S、W、N 或 GeoJSON) 要算繪的圖片地理空間區域。預設為整張圖片。 |
format (字串) 編碼格式。系統僅接受「gif」。 |
framesPerSecond (數字) 動畫速度。 |
|
callback | 函式 (選用) | 選用回呼,可處理產生的網址字串。如未提供,系統會同步發出呼叫。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003egetVideoThumbURL\u003c/code\u003e function generates an animated thumbnail URL for an ImageCollection.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize the thumbnail's dimensions, region, format, and animation speed using optional parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns the URL directly or passes it to a callback function if provided.\u003c/p\u003e\n"]]],["The `ImageCollection.getVideoThumbURL` method retrieves the URL of an animated thumbnail for an `ImageCollection`. It accepts parameters like `dimensions` (thumbnail size), `region` (area of interest), `format` ('gif' only), and `framesPerSecond` (animation speed). An optional `callback` function handles the resulting URL; otherwise, the call is synchronous. The method returns an Object or String containing the URL, or `undefined` if a callback was used. The ImageCollection instance is the targeted object of the method.\n"],null,["# ee.ImageCollection.getVideoThumbURL\n\n\u003cbr /\u003e\n\nGet the URL of an animated thumbnail for this ImageCollection.\n\n\u003cbr /\u003e\n\nReturns a thumbnail URL, or undefined if a callback was specified.\n\n| Usage | Returns |\n|----------------------------------------------------------|----------------|\n| ImageCollection.getVideoThumbURL`(params, `*callback*`)` | Object\\|String |\n\n| Argument | Type | Details |\n|-------------------------|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `imagecollection` | ImageCollection | The ImageCollection instance. |\n| `params` | Object | Parameters identical to ee.data.getMapId, plus, optionally: |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` dimensions ` (a number or pair of numbers in format WIDTHxHEIGHT) Maximum dimensions of the thumbnail to render, in pixels. If only one number is passed, it is used as the maximum, and the other dimension is computed by proportional scaling. | | ` region ` (E,S,W,N or GeoJSON) Geospatial region of the image to render. By default, the whole image. | | ` format ` (string) Encoding format. Only 'gif' is accepted. | | ` framesPerSecond ` (number) Animation speed. | |\n| `callback` | Function, optional | An optional callback which handles the resulting URL string. If not supplied, the call is made synchronously. |"]]