GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-bea8435a9e
auto_mask.c File Reference

Raster Library - Auto masking routines. More...

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include "R.h"
Include dependency graph for auto_mask.c:

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

Detailed Description

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.

Author
GRASS GIS Development Team
Date
1999-2008

Definition in file auto_mask.c.

Function Documentation

◆ Rast__check_for_auto_masking()

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.

Returns
0 if mask unset or unavailable
1 if mask set and available and ready to use

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

◆ Rast_suppress_masking()

void Rast_suppress_masking ( void  )

Suppresses masking.

Returns

Definition at line 84 of file auto_mask.c.

References R__::auto_mask, R__::mask_fd, Rast__init(), and Rast_close().

◆ Rast_unsuppress_masking()

void Rast_unsuppress_masking ( void  )

Unsuppresses masking.

Returns

Definition at line 102 of file auto_mask.c.

References R__::auto_mask, R__::mask_fd, Rast__check_for_auto_masking(), and Rast__init().