公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Filter.rangeContains
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回一个过滤器,如果所选字段的值在指定范围内(含边界值),则该过滤器会通过。
用法 | 返回 |
---|
ee.Filter.rangeContains(field, minValue, maxValue) | 过滤 |
参数 | 类型 | 详细信息 |
---|
field | 字符串 | 要测试的媒体资源的 selector。 |
minValue | 对象 | 范围的下限。 |
maxValue | 对象 | 范围的上限。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]