公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.ImageCollection.getVideoThumbURL
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
获取相应 ImageCollection 的动画缩略图的网址。
返回缩略图网址,如果指定了回调,则返回 undefined。
用法 | 返回 |
---|
ImageCollection.getVideoThumbURL(params, callback) | 对象|字符串 |
参数 | 类型 | 详细信息 |
---|
此:imagecollection | ImageCollection | ImageCollection 实例。 |
params | 对象 | 与 ee.data.getMapId 相同的参数,以及可选参数:
dimensions (一个数字或一对数字,格式为 WIDTHxHEIGHT)要呈现的缩略图的最大尺寸(以像素为单位)。如果只传递一个数字,则将其用作最大值,并通过按比例缩放计算另一个维度。 |
region (东、南、西、北或 GeoJSON)要渲染的图片的地理空间区域。默认情况下,为整个图片。 |
format (字符串)编码格式。仅接受“gif”格式。 |
framesPerSecond (数字)动画速度。 |
|
callback | 函数(可选) | 一个可选的回调,用于处理生成的网址字符串。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]