[GRASS-git] [OSGeo/grass] 54d613: raster: Work with any mask name (r.surf.contour, r...
Vaclav Petras
noreply at github.com
Wed Nov 6 14:04:46 PST 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 54d613f814cf18b4af64976c1b57205ebfe3d5cc
https://github.com/OSGeo/grass/commit/54d613f814cf18b4af64976c1b57205ebfe3d5cc
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2024-11-06 (Wed, 06 Nov 2024)
Changed paths:
M raster/r.random.cells/init.c
M raster/r.random.surface/init.c
M raster/r.surf.contour/main.c
Log Message:
-----------
raster: Work with any mask name (r.surf.contour, r.random.cells, r.random.surface) (#4634)
Use Rast_mask_status instead of hardcoded name MASK for r.surf.contour, r.random.cells, and r.random.surface. Raster mask if present, is loaded in a special way in these tools. After this change, the name of the mask is retrieved from the library (that's the important part) and the library is at the same time used to test the presence of the mask (as opposed to testing presence of raster directly, but that's just more convenient rather than conceptual).
The change in r.random.surface code switching the if and else branches is to make it easier to write and more consistent with the other two.
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