[GRASS-git] [OSGeo/grass] ba0a49: r.mask.status: Always output name of the mask (#4531)
Vaclav Petras
noreply at github.com
Thu Oct 31 09:49:59 PDT 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: ba0a4951958b20b0c1fca339c4fa92714095bacc
https://github.com/OSGeo/grass/commit/ba0a4951958b20b0c1fca339c4fa92714095bacc
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M include/grass/defs/raster.h
M lib/raster/mask_info.c
M raster/r.mask.status/main.c
M raster/r.mask.status/r.mask.status.html
M raster/r.mask.status/tests/r_mask_status_test.py
Log Message:
-----------
r.mask.status: Always output name of the mask (#4531)
For both active and inactive raster mask, show the name of the raster which is used (or would be used) for the mask. This will allow tools like r.mask or GUI to do lower-level operations with or around mask without a need to know about defaults or user mechanism to change the name.
I'm repurposing the existing 'name' (full_name) key which is now always set (as opposed to being null when no mask is present) as the 'present' boolean key already has the information on the mask presence. I'm renaming full_name to name because that creates a simpler interface (which is whole point of outputting full name as opposed to two keys to get name and mapset).
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list