28 #include <grass/gis.h>
42 const char *mapset_name)
45 struct Cell_head default_window;
48 if (location_name ==
NULL)
52 if (gisdbase_name ==
NULL)
58 sprintf(path,
"%s/%s/%s", gisdbase_name, location_name, mapset_name);
106 const char *mapset_name)
116 perror(
"G_make_mapset");
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
int G_mkdir(const char *path)
Creates a new directory.
int G__make_mapset(const char *gisdbase_name, const char *location_name, const char *mapset_name)
int G_get_default_window(struct Cell_head *window)
read the default region
char * G_gisdbase(void)
Get name of top level database directory.
char * G_location(void)
Get current location name.
int G_make_mapset(const char *gisdbase_name, const char *location_name, const char *mapset_name)
create a new mapset
int G__setenv(const char *name, const char *value)
Set environment name to value.
int G__put_window(const struct Cell_head *window, char *dir, char *name)
int G__create_alt_env(void)
Set up alternative environment variables.
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
int G__switch_env(void)
Switch environments.