44 const char *mapset_name)
50 if (location_name ==
NULL)
54 if (gisdbase_name ==
NULL)
64 sprintf(path,
"%s/%s", gisdbase_name, location_name);
65 if (access(path, F_OK ) == -1)
69 sprintf(path,
"%s/%s/%s", gisdbase_name, location_name, mapset_name);
71 perror(
"G_make_mapset");
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_setenv_nogisrc(const char *, const char *)
Set environment name to value (doesn't update .gisrc)
2D/3D raster map header (used also for region)
const char * G_gisdbase(void)
Get name of top level database directory.
const char * G_location(void)
Get current location name.
void G_create_alt_env(void)
Set up alternative environment variables.
int G_legal_filename(const char *)
Check for legal database file name.
int G_put_element_window(const struct Cell_head *, const char *, const char *)
Write the region.
int G_make_mapset(const char *gisdbase_name, const char *location_name, const char *mapset_name)
Create a new mapset.
int G_mkdir(const char *)
Creates a new directory.
void G_get_default_window(struct Cell_head *)
Get the default region.
void G_switch_env(void)
Switch environments.