ee.ImageCollection.combine
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.
Tạo một tập hợp mới là bản sao của các hình ảnh trong tập hợp chính, thêm tất cả các dải tần từ hình ảnh trong tập hợp phụ có mã nhận dạng trùng khớp. Nếu không có mã nhận dạng nào khớp, thì tập hợp kết quả sẽ trống. Thao tác này tương đương với thao tác kết hợp bên trong trên mã nhận dạng với việc hợp nhất các dải kết quả.
Xin lưu ý rằng thuật toán này giả định rằng đối với một cặp đầu vào khớp, cả hai đều có cùng dấu vết và siêu dữ liệu.
Cách sử dụng | Giá trị trả về |
---|
ImageCollection.combine(secondary, overwrite) | ImageCollection |
Đối số | Loại | Thông tin chi tiết |
---|
this: primary | ImageCollection | Bộ sưu tập chính mà bạn muốn tham gia. |
secondary | ImageCollection | Bộ sưu tập phụ cần kết hợp. |
overwrite | Boolean, mặc định: false | Nếu là true, các dải tần có cùng tên sẽ bị ghi đè. Nếu là false, các dải tần có cùng tên sẽ được đổi tên. |
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\u003eCreates a new image collection by combining images from two input collections based on matching IDs.\u003c/p\u003e\n"],["\u003cp\u003eMerges bands from matching images, resulting in an empty collection if no IDs match.\u003c/p\u003e\n"],["\u003cp\u003eImages with the same ID in both input collections are assumed to have identical footprint and metadata.\u003c/p\u003e\n"],["\u003cp\u003eBand names are preserved by default, but can be overwritten using the \u003ccode\u003eoverwrite\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],["The function combines two `ImageCollections` (`primary` and `secondary`) by performing an inner join based on matching IDs. It copies images from the `primary` collection and adds bands from the `secondary` collection with the corresponding ID. If no matching ID is found, the resulting collection is empty. Band names that are the same can either be renamed or overwritten based on the `overwrite` flag. The function returns a new `ImageCollection`.\n"],null,["# ee.ImageCollection.combine\n\nMakes a new collection that is a copy of the images in primary, adding all the bands from the image in secondary with a matching ID. If there are no matching IDs, the resulting collection will be empty. This is equivalent to an inner join on ID with merging of the bands of the result.\n\n\u003cbr /\u003e\n\nNote that this algorithm assumes that for a matching pair of inputs, both have the same footprint and metadata.\n\n| Usage | Returns |\n|-----------------------------------------------------|-----------------|\n| ImageCollection.combine`(secondary, `*overwrite*`)` | ImageCollection |\n\n| Argument | Type | Details |\n|-----------------|-------------------------|-------------------------------------------------------------------------------------------------------------|\n| this: `primary` | ImageCollection | The primary collection to join. |\n| `secondary` | ImageCollection | The secondary collection to join. |\n| `overwrite` | Boolean, default: false | If true, bands with the same name will get overwritten. If false, bands with the same name will be renamed. |"]]