GRASS 8 Programmer's Manual 8.6.0dev(2026)-7c29b9c03a
Loading...
Searching...
No Matches
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 engine.
 
void Rast__check_init (void)
 Checks to see if GIS engine is initialized.
 
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.

SPDX-FileCopyrightText: 2001-2008 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
GRASS 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 50 of file raster/init.c.

References _, and G_fatal_error().

◆ Rast__error_handler()

void Rast__error_handler ( void p)

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

References Rast__unopen_all().

◆ Rast__init()

◆ Rast_init()

void Rast_init ( void  )

Initialize GRASS 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 40 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 139 of file raster/init.c.

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

Variable Documentation

◆ R__

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