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