GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-5c00b4e944
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.


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)


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.

GRASS GIS Development Team

Definition in file raster/init.c.

Function Documentation

◆ Rast__check_init()

void Rast__check_init ( void  )

Checks to see if GIS engine is initialized.


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

◆ Rast__error_handler()

void Rast__error_handler ( void *  p)

Definition at line 73 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.

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