GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
Raster Library - Auto masking routines. More...
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include "R.h"
Go to the source code of this file.
Functions | |
int | Rast__check_for_auto_masking (void) |
Checks for auto masking. More... | |
void | Rast_suppress_masking (void) |
Suppresses masking. More... | |
void | Rast_unsuppress_masking (void) |
Unsuppresses masking. More... | |
Raster Library - Auto masking routines.
(C) 2001-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file auto_mask.c.
int Rast__check_for_auto_masking | ( | void | ) |
Checks for auto masking.
On first call, opens the mask file if declared and available and allocates buffer for reading mask rows. On second call, returns 0 or 1.
Definition at line 35 of file auto_mask.c.
References _, R__::auto_mask, G_find_raster(), G_mapset(), G_projection(), G_warning(), G_zone(), R__::mask_fd, Cell_head::proj, Rast__init(), Rast__open_old(), Rast_get_cellhd(), Rast_unopen(), and Cell_head::zone.
Referenced by Rast_init_all(), Rast_maskfd(), Rast_open_old(), and Rast_unsuppress_masking().
void Rast_suppress_masking | ( | void | ) |
Suppresses masking.
Definition at line 84 of file auto_mask.c.
References R__::auto_mask, R__::mask_fd, Rast__init(), and Rast_close().
void Rast_unsuppress_masking | ( | void | ) |
Unsuppresses masking.
Definition at line 102 of file auto_mask.c.
References R__::auto_mask, R__::mask_fd, Rast__check_for_auto_masking(), and Rast__init().