GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
raster/init.c File Reference

Raster Library - Handles program initialization. More...

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <locale.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include "R.h"
Include dependency graph for raster/init.c:

Go to the source code of this file.

Functions

void Rast_init (void)
 Initialize GRASS GIS engine. More...
 
void Rast__check_init (void)
 Checks to see if GIS engine is initialized. More...
 
void Rast__init (void)
 
void Rast__error_handler (void *p)
 
void Rast_init_all (void)
 

Variables

struct R__ R__
 

Detailed Description

Raster Library - Handles program initialization.

(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
2000-2008

Definition in file raster/init.c.

Function Documentation

◆ Rast__check_init()

void Rast__check_init ( void  )

Checks to see if GIS engine is initialized.

Returns

Definition at line 56 of file raster/init.c.

◆ Rast__error_handler()

◆ Rast__init()

◆ Rast_init()

void Rast_init ( void  )

Initialize GRASS GIS engine.

Initializes GIS engine and ensures a valid mapset is available.

Returns
always returns 0 on success
exit() is called on error

Definition at line 44 of file raster/init.c.

References Rast__init().

Referenced by Rast_read_fp_range(), Rast_read_rstats(), Rast_write_fp_range(), and Rast_write_rstats().

◆ Rast_init_all()

void Rast_init_all ( void  )

Definition at line 142 of file raster/init.c.

References Rast__check_for_auto_masking(), Rast__init(), and Rast_init_gdal().

Variable Documentation

◆ R__

struct R__ R__

Definition at line 30 of file raster/init.c.