91 #define DATABASE_NAME 1
93 static char *get_mapset_connection_name(
const char *mapset,
int contype)
95 const char *val =
NULL;
102 G_debug(1,
"Checking mapset <%s>", mapset);
115 G_warning(
_(
"Mapset <%s> does not exist."), mapset);
154 return get_mapset_connection_name(mapset,
DRIVER_NAME);
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_switch_env(void)
Switch environments.
void G_warning(const char *,...) __attribute__((format(printf
void G_setenv2(const char *, const char *, int)
Set environment variable from specific place (updates .gisrc)
const char * G_getenv_nofatal2(const char *, int)
Get environment variable from specific place.
void G__read_mapset_env(void)
Force to read the mapset environment file VAR.
int G_mapset_permissions2(const char *, const char *, const char *)
Check for user mapset permission.
void G_create_alt_env(void)
Set up alternative environment variables.
int G_debug(int, const char *,...) __attribute__((format(printf
const char * G_getenv_nofatal(const char *)
Get environment variable.
void G_setenv_nogisrc(const char *, const char *)
Set environment name to value (doesn't update .gisrc)
char * G_store(const char *)
Copy string to allocated memory.
char * tgis_get_driver_name(void)
Get TGIS driver name.
char * tgis_get_database_name(void)
Get TGIS database name.
char * tgis_get_mapset_driver_name(const char *mapset)
Get TGIS driver name from a specific mapset.
int tgis_set_connection(dbConnection *connection)
Set Temporal GIS DB connection settings.
char * tgis_get_mapset_database_name(const char *mapset)
Get TGIS database name.
int tgis_get_connection(dbConnection *connection)
Get Temporal GIS DB connection settings.