公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.getThumbId
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
获取给定素材资源的缩略图 ID。
返回缩略图 ID 和可选令牌,如果指定了回调,则返回 null。
用法 | 返回 |
---|
ee.data.getThumbId(params, callback) | ThumbnailId |
参数 | 类型 | 详细信息 |
---|
params | ThumbnailOptions | 一个包含缩略图选项的对象,可用的值如下:
image (ee.Image) 要制作缩略图的图片。 |
bands (字符串数组)频段名称数组。 |
format (字符串)文件格式(“png”“jpg”“geotiff”)。 |
name (字符串):基本名称。 |
使用 ee.Image.getThumb网址 支持区域、尺寸和可视化选项。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]