-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invert mask #103
Comments
Sounds useful. I guess the parameter should also apply to the other options of |
indeed (and actually, my intuition would expect that flipped behavior to be the default for raster masks as well, but maybe it's an EO convention I'm not used to yet) |
We could also use the process "not" to invert the mask, but it's a bit clearer if this behavior can be defined directly when calling "mask". |
But that wouldn't work for a polygon (GeoJSON) based mask, right? |
It would, but with more steps: Create mask from GeoJSON, apply |
Has been merged. Is now available in mask_polygon. |
The mask process allows polygons to be passed as mask, in which case the pixels covered by the polygons are masked out (replaced with replacement value):
(from https://openeo.org/documentation/0.4/processes.html#mask)
Wouldn't it be useful as well to have an option to flip this behaviour: preserve the pixels that are covered by any of the polygons and replace the "outside" of the polygons. (This would actually be my intuitive expectation of how this process would handle polygons by default)
The text was updated successfully, but these errors were encountered: