GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
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 37 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 87 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 106 of file auto_mask.c.
References R__::auto_mask, R__::mask_fd, Rast__check_for_auto_masking(), and Rast__init().