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