ee.Filter.rangeContains
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.
Trả về một bộ lọc sẽ truyền nếu giá trị của trường đã chọn nằm trong phạm vi được chỉ định (bao gồm cả giá trị đầu và cuối).
Cách sử dụng | Giá trị trả về |
---|
ee.Filter.rangeContains(field, minValue, maxValue) | Lọc |
Đối số | Loại | Thông tin chi tiết |
---|
field | Chuỗi | Bộ chọn cho tài sản đang được thử nghiệm. |
minValue | Đối tượng | Giới hạn dưới của phạm vi. |
maxValue | Đối tượng | Giới hạn trên của phạm vi. |
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\u003eReturns a filter that passes if the selected property's value falls within a specified range, including both the lower and upper bounds.\u003c/p\u003e\n"],["\u003cp\u003eThe filter is constructed using the \u003ccode\u003eee.Filter.rangeContains()\u003c/code\u003e method, requiring the property name (\u003ccode\u003efield\u003c/code\u003e), minimum value (\u003ccode\u003eminValue\u003c/code\u003e), and maximum value (\u003ccode\u003emaxValue\u003c/code\u003e) as inputs.\u003c/p\u003e\n"],["\u003cp\u003eAccepts various data types for the minimum and maximum values, adapting to the property being evaluated.\u003c/p\u003e\n"]]],["The core functionality is creating a filter that checks if a specified field's value falls within a given range. It utilizes `ee.Filter.rangeContains(field, minValue, maxValue)` to construct this filter. The function requires three arguments: `field` (a string indicating the property to check), `minValue` (the lower bound), and `maxValue` (the upper bound). It returns a filter object that only passes if the field's value is within or equal to the specified minimum and maximum values.\n"],null,["# ee.Filter.rangeContains\n\nReturns a filter that passes if the value of the selected field is in the specified range (inclusive).\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------|---------|\n| `ee.Filter.rangeContains(field, minValue, maxValue)` | Filter |\n\n| Argument | Type | Details |\n|------------|--------|-------------------------------------------|\n| `field` | String | A selector for the property being tested. |\n| `minValue` | Object | The lower bound of the range. |\n| `maxValue` | Object | The upper bound of the range. |"]]