GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <grass/gis.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
Go to the source code of this file.
Functions | |
int | G__make_mapset (const char *gisdbase_name, const char *location_name, const char *mapset_name) |
int | G_make_mapset (const char *gisdbase_name, const char *location_name, const char *mapset_name) |
create a new mapset More... | |
int G__make_mapset | ( | const char * | gisdbase_name, |
const char * | location_name, | ||
const char * | mapset_name | ||
) |
Definition at line 41 of file make_mapset.c.
References G__create_alt_env(), G__put_window(), G__setenv(), G__switch_env(), G_get_default_window(), G_gisdbase(), G_location(), G_mkdir(), NULL, and sprintf().
Referenced by G_make_mapset().
int G_make_mapset | ( | const char * | gisdbase_name, |
const char * | location_name, | ||
const char * | mapset_name | ||
) |
create a new mapset
This function creates a new mapset in the current location, initializes default window and current window.
char | * gisdbase_name The full path of GISDBASE to create mapset in. If NULL then current GISDBASE is used. |
char | * location_name The name location to create mapset in. If NULL then current location is used. |
char | * mapset_name The name of the new mapset. Should not include the full path, the mapset will be created within the current database and location. |
Definition at line 105 of file make_mapset.c.
References err, G__make_mapset(), and G_fatal_error().