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

void Rast__check_init ( void  )

Checks to see if GIS engine is initialized.


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

References _, and G_fatal_error().

void Rast__error_handler ( void *  p)

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

References Rast__unopen_all().

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

void Rast_init_all ( void  )

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

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

Variable Documentation

struct R__ R__

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