GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72651
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Returns

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.

Returns

Definition at line 106 of file auto_mask.c.

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