公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Filter.area
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回一个过滤器,如果指定几何图形的面积在给定范围内(含),则通过该过滤器。
用法 | 返回 |
---|
ee.Filter.area(min, max, maxError, geometrySelector) | 过滤 |
参数 | 类型 | 详细信息 |
---|
min | 浮点数 | 最小面积(以平方米为单位,含此值)。 |
max | 浮点数 | 最大面积(以平方米为单位,含边界值)。 |
maxError | ErrorMargin,默认值:null | 计算几何图形面积时允许的最大误差。 |
geometrySelector | 字符串,默认值:null | 用于过滤的几何属性的名称。留空或使用 '.geo' 可对对象的几何图形进行操作。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eFilters geometries based on their area, accepting a minimum and maximum area in square meters.\u003c/p\u003e\n"],["\u003cp\u003eIncludes optional parameters to specify the maximum allowed error for area calculation and the geometry property to use.\u003c/p\u003e\n"],["\u003cp\u003eUses inclusive ranges, meaning geometries with areas equal to the minimum or maximum are included.\u003c/p\u003e\n"]]],[],null,["# ee.Filter.area\n\nReturns a filter that passes if the specified geometry has an area within the given range (inclusive).\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------|---------|\n| `ee.Filter.area(min, max, `*maxError* `, `*geometrySelector*`)` | Filter |\n\n| Argument | Type | Details |\n|--------------------|----------------------------|------------------------------------------------------------------------------------------------------------------------|\n| `min` | Float | Minimum area in square meters (inclusive). |\n| `max` | Float | Maximum area in square meters (inclusive). |\n| `maxError` | ErrorMargin, default: null | The maximum allowed error for computing the geometry's area. |\n| `geometrySelector` | String, default: null | The name of the geometry property to use for filtering. Leave blank or use '.geo' to operate on the object's geometry. |"]]