ee.Filter.contains
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 bộ lọc đơn nguyên hoặc nhị phân sẽ truyền nếu hình học bên trái chứa hình học bên phải (hình học trống không được chứa trong bất kỳ hình học nào).
Cách sử dụng | Giá trị trả về |
---|
ee.Filter.contains(leftField, rightValue, rightField, leftValue, maxError) | Lọc |
Đối số | Loại | Thông tin chi tiết |
---|
leftField | Chuỗi, mặc định: null | Bộ chọn cho toán hạng bên trái. Không được chỉ định nếu bạn chỉ định leftValue. |
rightValue | Đối tượng, mặc định: null | Giá trị của toán hạng bên phải. Không nên chỉ định nếu bạn chỉ định rightField. |
rightField | Chuỗi, mặc định: null | Bộ chọn cho toán hạng bên phải. Không được chỉ định nếu bạn chỉ định rightValue. |
leftValue | Đối tượng, mặc định: null | Giá trị của toán hạng bên trái. Không được chỉ định nếu bạn chỉ định leftField. |
maxError | ErrorMargin (không bắt buộc) | Lỗi chiếu lại tối đa được phép trong quá trình áp dụng bộ lọc. |
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\u003eDetermines if a geometry completely encloses another geometry, passing if the left geometry contains the right geometry.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes either field selectors or direct values for both the left and right geometries in the comparison.\u003c/p\u003e\n"],["\u003cp\u003eEmpty geometries are considered to not be contained within any other geometry.\u003c/p\u003e\n"],["\u003cp\u003eIncludes an optional \u003ccode\u003emaxError\u003c/code\u003e parameter to control the allowable reprojection error during the filter's application.\u003c/p\u003e\n"]]],["This describes the creation of a filter that checks if a left geometry contains a right geometry. The filter, accessible via `ee.Filter.contains`, accepts either `leftField` and `rightField` (selectors) or `leftValue` and `rightValue` (objects) to define the geometries. An optional `maxError` argument specifies the maximum allowable reprojection error. The function returns a `Filter` object. Empty geometries are never considered contained.\n"],null,["# ee.Filter.contains\n\nCreates a unary or binary filter that passes if the left geometry contains the right geometry (empty geometries are not contained in anything).\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------------------|---------|\n| `ee.Filter.contains(`*leftField* `, `*rightValue* `, `*rightField* `, `*leftValue* `, `*maxError*`)` | Filter |\n\n| Argument | Type | Details |\n|--------------|-----------------------|---------------------------------------------------------------------------------------|\n| `leftField` | String, default: null | A selector for the left operand. Should not be specified if leftValue is specified. |\n| `rightValue` | Object, default: null | The value of the right operand. Should not be specified if rightField is specified. |\n| `rightField` | String, default: null | A selector for the right operand. Should not be specified if rightValue is specified. |\n| `leftValue` | Object, default: null | The value of the left operand. Should not be specified if leftField is specified. |\n| `maxError` | ErrorMargin, optional | The maximum reprojection error allowed during filter application. |"]]