公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.ImageCollection.getFilmstripThumbURL
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
获取相应 ImageCollection 的平铺缩略图的网址。
返回缩略图网址,如果指定了回调,则返回 undefined。
用法 | 返回 |
---|
ImageCollection.getFilmstripThumbURL(params, callback) | 对象|字符串 |
参数 | 类型 | 详细信息 |
---|
此:imagecollection | ImageCollection | ImageCollection 实例。 |
params | 对象 | 与 ee.data.getMapId 相同的参数,以及可选参数:
dimensions (一个数字或一对数字,格式为 WIDTHxHEIGHT)要渲染的每个缩略图帧的最大尺寸(以像素为单位)。如果只传递一个数字,则将其用作最大值,并通过按比例缩放计算另一个维度。 |
region (东、南、西、北或 GeoJSON)要渲染的图片的地理空间区域。默认情况下,为整个图片。 |
format (字符串)编码格式。仅接受“png”或“jpg”格式。 |
|
callback | 函数(可选) | 一个可选的回调,用于处理生成的网址字符串。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eGet a URL for a tiled thumbnail of an ImageCollection using \u003ccode\u003eImageCollection.getFilmstripThumbURL\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCustomize the thumbnail by specifying dimensions, region, and format within the \u003ccode\u003eparams\u003c/code\u003e argument.\u003c/p\u003e\n"],["\u003cp\u003eProvide an optional callback function to handle the resulting URL or retrieve it synchronously.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.getFilmstripThumbURL\n\n\u003cbr /\u003e\n\nGet the URL of a tiled 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.getFilmstripThumbURL`(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 each thumbnail frame 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 'png' or 'jpg' are accepted. | |\n| `callback` | Function, optional | An optional callback which handles the resulting URL string. If not supplied, the call is made synchronously. |"]]