GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
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 UNUSED)
 
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 54 of file raster/init.c.

◆ Rast__error_handler()

void Rast__error_handler ( void *p  UNUSED)

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

References Rast__unopen_all().

◆ 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 43 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 143 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 1 of file raster/init.c.