ee.ImageCollection.getInfo
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Một hàm bắt buộc trả về tất cả thông tin đã biết về bộ sưu tập này thông qua lệnh gọi AJAX.
Trả về nội dung mô tả bộ sưu tập có các trường sau:
- features: danh sách chứa siêu dữ liệu về các hình ảnh trong tuyển tập.
- bands: một từ điển mô tả các dải tần của hình ảnh trong bộ sưu tập này.
- properties: một từ điển không bắt buộc chứa các thuộc tính siêu dữ liệu của bộ sưu tập.
Cách sử dụng | Giá trị trả về |
---|
ImageCollection.getInfo(callback) | ImageCollectionDescription |
Đối số | Loại | Thông tin chi tiết |
---|
this: imagecollection | ImageCollection | Đối tượng ImageCollection. |
callback | Hàm, không bắt buộc | Một lệnh gọi lại không bắt buộc. Nếu không được cung cấp, lệnh gọi sẽ được thực hiện đồng bộ. Nếu được cung cấp, sẽ được gọi bằng tham số đầu tiên nếu thành công và tham số thứ hai nếu không thành công. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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. |"]]