ee.Filter.listContains
Creates a unary or binary filter that passes if the left operand, a list, contains the right operand.
Usage | Returns |
---|
ee.Filter.listContains(leftField, rightValue, rightField, leftValue) | 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. |
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."],[[["Creates a filter that checks if a list (left operand) contains a specific value (right operand)."],["Uses selectors (`leftField`, `rightField`) or direct values (`leftValue`, `rightValue`) to define the operands."],["Can be used as either a unary or binary filter depending on the arguments provided."],["Returns an `ee.Filter` object that can be applied to Earth Engine collections."]]],["This filter checks if a list (left operand) contains a specific value (right operand). It supports two operation modes: unary (using `leftField` and `rightValue`) or binary (using `leftField` and `rightField`, or `leftValue` and `rightValue`). The `leftField` and `leftValue` arguments define the list, while `rightValue` or `rightField` specify the value to be searched within the list. The result of applying the filter is a filter object.\n"]]