Skip to content

Comments

r.mask.status: Always output name of the mask#4531

Merged
wenzeslaus merged 3 commits intoOSGeo:mainfrom
wenzeslaus:reveal-name-of-mask
Oct 31, 2024
Merged

r.mask.status: Always output name of the mask#4531
wenzeslaus merged 3 commits intoOSGeo:mainfrom
wenzeslaus:reveal-name-of-mask

Conversation

@wenzeslaus
Copy link
Member

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).

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).
@github-actions github-actions bot added raster Related to raster data processing Python Related code is in Python C Related code is in C HTML Related code is in HTML libraries module docs labels Oct 15, 2024
@wenzeslaus wenzeslaus enabled auto-merge (squash) October 31, 2024 14:59
@wenzeslaus wenzeslaus merged commit ba0a495 into OSGeo:main Oct 31, 2024
@wenzeslaus wenzeslaus deleted the reveal-name-of-mask branch October 31, 2024 16:49
@github-actions github-actions bot added this to the 8.5.0 milestone Oct 31, 2024
@a0x8o a0x8o mentioned this pull request Nov 6, 2024
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Nov 11, 2024
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Related code is in C docs HTML Related code is in HTML libraries module Python Related code is in Python raster Related to raster data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants