Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Filter.not
Stay organized with collections
Save and categorize content based on your preferences.
Returns the opposite of the input filter, i.e. the resulting filter will match if and only if the input filter doesn't match.
Usage | Returns | Filter.not() | Filter |
Argument | Type | Details | this: filter | Filter | The Filter instance. |
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\u003eThis function inverts the effect of a given filter, returning a new filter that matches only when the original filter doesn't.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFilter.not()\u003c/code\u003e method can be used on a Filter instance, resulting in a new Filter with the opposite matching behavior.\u003c/p\u003e\n"],["\u003cp\u003eThis method accepts one argument: the original filter instance (\u003ccode\u003ethis\u003c/code\u003e) to be negated.\u003c/p\u003e\n"]]],["The `Filter.not()` method inverts a filter's behavior. It takes a `Filter` instance as input and returns a new `Filter`. This new `Filter` will match only when the original filter does not. In essence, it reverses the matching logic of the input filter. The `this: filter` argument specifies the `Filter` instance to be inverted.\n"],null,["# ee.Filter.not\n\n\u003cbr /\u003e\n\nReturns the opposite of the input filter, i.e. the resulting filter will match if and only if the input filter doesn't match.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------|---------|\n| Filter.not`()` | Filter |\n\n| Argument | Type | Details |\n|----------------|--------|----------------------|\n| this: `filter` | Filter | The Filter instance. |"]]