公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.ImageCollection.getInfo
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
一种命令式函数,可通过 AJAX 调用返回有关此集合的所有已知信息。
返回字段包括以下内容的集合说明:
- features:一个列表,包含有关集合中图片的元数据。
- bands:一个字典,用于描述相应媒体集中图片的波段。
- properties:一个可选的字典,包含集合的元数据属性。
用法 | 返回 |
---|
ImageCollection.getInfo(callback) | ImageCollectionDescription |
参数 | 类型 | 详细信息 |
---|
此:imagecollection | ImageCollection | ImageCollection 实例。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。如果提供,则在成功时使用第一个参数调用,在不成功时使用第二个参数调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003egetInfo()\u003c/code\u003e retrieves comprehensive metadata about an ImageCollection, including image features, band details, and collection properties.\u003c/p\u003e\n"],["\u003cp\u003eThis function is executed via an AJAX call, returning an ImageCollectionDescription object containing the requested information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetInfo()\u003c/code\u003e can be used synchronously or asynchronously by optionally providing a callback function to handle the result.\u003c/p\u003e\n"]]],["The `getInfo` function retrieves metadata about an `ImageCollection` via an AJAX call. It returns an `ImageCollectionDescription` containing: a `features` list (image metadata), a `bands` dictionary (band descriptions), and an optional `properties` dictionary (collection metadata). The function can operate synchronously or asynchronously using an optional `callback`. The `callback` function receives the result upon successful or failed completion.\n"],null,["# ee.ImageCollection.getInfo\n\n\u003cbr /\u003e\n\nAn imperative function that returns all the known information about this collection via an AJAX call.\n\n\u003cbr /\u003e\n\nReturns a collection description whose fields include:\n\n- features: a list containing metadata about the images in the collection.\n\n- bands: a dictionary describing the bands of the images in this collection.\n\n- properties: an optional dictionary containing the collection's metadata properties.\n\n| Usage | Returns |\n|-----------------------------------------|----------------------------|\n| ImageCollection.getInfo`(`*callback*`)` | ImageCollectionDescription |\n\n| Argument | Type | Details |\n|-------------------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `imagecollection` | ImageCollection | The ImageCollection 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. |"]]