24 #include <grass/gis.h>
26 #include <grass/glocale.h>
30 static int initialized = 0;
31 static int gisinit(
void);
53 if (strcmp(version, GIS_H_VERSION) != 0)
55 "trying to use version %s. "
56 "You need to rebuild GRASS GIS or untangle multiple installations."),
57 version, GIS_H_VERSION);
91 if (strcmp(version, GIS_H_VERSION) != 0)
93 "trying to use version %s. "
94 "You need to rebuild GRASS GIS or untangle multiple installations."),
95 version, GIS_H_VERSION);
113 G_warning(_(
"System not initialized. Programmer forgot to call G_gisinit()."));
119 static int gisinit(
void)
145 setlocale(LC_NUMERIC,
"C");
char * G_mapset(void)
current mapset name
int G__mapset_permissions(const char *mapset)
Check for user mapset permission.
int G__no_gisinit(const char *version)
Initialize GRASS GIS engine.
def version
Get GRASS version as dictionary.
char * G_location_path(void)
Get current location directory.
void G_sleep(unsigned int seconds)
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
int G__reallocate_mask_buf(void)
Allocate/enlarge the mask buffer needed by get_map_row()
int G_set_program_name(const char *s)
int G__check_gisinit(void)
Checks to see if GIS engine is initialized.
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
int G__gisinit(const char *version, const char *pgm)
Initialize GRASS GIS engine.