-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
wxGUI: Use r.mask.status to get info about mask #4519
Conversation
Depends on #4531. |
197732c
to
62afeed
Compare
This replaces low level checks of MASK raster in the current mapset with calls of r.mask.status. GConsole and SbMask require r.mask.status to output a potential name of the mask regerdless of mask being set or not, so this functionality still needs to be implemented first before moving this PR forward. History changes seem to be complete.
62afeed
to
7a965a5
Compare
…running tools based on direct user input.
@lindakarlovska Feel free to review or comment here. I might be able to incorporate changes even after this is merged. |
That's a nice improvement. Just thinking about the sense of possible r3.mask.status module. I am wondering how often users use 3D mask... or maybe more general, how many people work with 3D rasters in GRASS, do you have any idea @wenzeslaus ? |
Handling 3D rasters better would make sense. It's a kind of chicken and egg problem - more tools would lead to more usage, and more usage would lead to more tools. I was quite happy when I used them, but wished for more tools (and added some). |
This replaces low level checks of MASK raster in the current mapset with calls of r.mask.status. At the same time, it prepares the code for arbitrary mask names from #2392.
GConsole and SbMask require r.mask.status to output a potential name of the mask regardless of mask being set or not, so this is using the
name
from #4531 in r.mask.status which simply gives the name of the mask whether or not it is active.History now records the name of the mask both for 2D and 3D. This is not used in the GUI at this point.
The status bar does not say "MASK" in all caps anymore, but says "Mask" or "raster mask".