公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.getInfo
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
一种命令式函数,可通过 AJAX 调用返回有关此图片的信息。
返回图片的说明。包括:
- bands - 一个列表,包含有关集合中波段的元数据。
- properties - 一个包含图片元数据属性的字典。
用法 | 返回 |
---|
Image.getInfo(callback) | ImageDescription |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | Image 实例。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。如果提供,则在成功时使用第一个参数调用,在不成功时使用第二个参数调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eImage.getInfo\u003c/code\u003e is an imperative function that retrieves image metadata via an AJAX call, returning an \u003ccode\u003eImageDescription\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImageDescription\u003c/code\u003e object contains two key elements: \u003ccode\u003ebands\u003c/code\u003e (metadata about image bands) and \u003ccode\u003eproperties\u003c/code\u003e (a dictionary of image metadata properties).\u003c/p\u003e\n"],["\u003cp\u003eThis function can be used synchronously or asynchronously by supplying an optional callback function that handles the results.\u003c/p\u003e\n"]]],[],null,["# ee.Image.getInfo\n\n\u003cbr /\u003e\n\nAn imperative function that returns information about this image via an AJAX call.\n\n\u003cbr /\u003e\n\nReturns a description of the image. Includes:\n\n- bands - a list containing metadata about the bands in the collection.\n\n- properties - a dictionary containing the image's metadata properties.\n\n| Usage | Returns |\n|-------------------------------|------------------|\n| Image.getInfo`(`*callback*`)` | ImageDescription |\n\n| Argument | Type | Details |\n|---------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The Image instance. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. If supplied, will be called with the first parameter if successful and the second if unsuccessful. |"]]