ee.Filter.contains
Creates a unary or binary filter that passes if the left geometry contains the right geometry (empty geometries are not contained in anything).
Usage | Returns |
---|
ee.Filter.contains(leftField, rightValue, rightField, leftValue, maxError) | Filter |
Argument | Type | Details |
---|
leftField | String, default: null | A selector for the left operand. Should not be specified if leftValue is specified. |
rightValue | Object, default: null | The value of the right operand. Should not be specified if rightField is specified. |
rightField | String, default: null | A selector for the right operand. Should not be specified if rightValue is specified. |
leftValue | Object, default: null | The value of the left operand. Should not be specified if leftField is specified. |
maxError | ErrorMargin, optional | The maximum reprojection error allowed during filter application. |
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."],[[["Determines if a geometry completely encloses another geometry, passing if the left geometry contains the right geometry."],["Utilizes either field selectors or direct values for both the left and right geometries in the comparison."],["Empty geometries are considered to not be contained within any other geometry."],["Includes an optional `maxError` parameter to control the allowable reprojection error during the filter's application."]]],["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"]]