[GRASS-user] Making a MASK raster in a C Script
Hamish
hamish_b at yahoo.com
Wed Sep 15 17:39:12 EDT 2010
rabotin wrote:
> In a C script, I need to create a MASK from a raster map. I
> saw that the r.mask command is a front-end of the r.mapcalc
> command.
> Is there a C function or library to create a MASK for a C
> script or do we need to use the r.mapcalc library ?
all you need to do is to create a raster map called "MASK"
somewhere in the mapset search path. The only thing special
about it is its name, otherwise create it like any other map,
either in C using libgis or with the output= option of any
module, or g.rename, or g.copy.
Hamish
More information about the grass-user
mailing list