Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Filter.area
Stay organized with collections
Save and categorize content based on your preferences.
Returns a filter that passes if the specified geometry has an area within the given range (inclusive).
Usage | Returns | ee.Filter.area(min, max, maxError, geometrySelector) | Filter |
Argument | Type | Details | min | Float | Minimum area in square meters (inclusive). |
max | Float | Maximum area in square meters (inclusive). |
maxError | ErrorMargin, default: null | The maximum allowed error for computing the geometry's area. |
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\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. |"]]