GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-5719ba6fd5
|
Temporal GIS Library - connect to TGIS DB. More...
Go to the source code of this file.
Macros | |
#define | DRIVER_NAME 0 |
#define | DATABASE_NAME 1 |
Functions | |
char * | tgis_get_driver_name (void) |
Get TGIS driver name. More... | |
char * | tgis_get_database_name (void) |
Get TGIS database name. More... | |
int | tgis_set_connection (dbConnection *connection) |
Set Temporal GIS DB connection settings. More... | |
int | tgis_get_connection (dbConnection *connection) |
Get Temporal GIS DB connection settings. More... | |
char * | tgis_get_mapset_driver_name (const char *mapset) |
Get TGIS driver name from a specific mapset. More... | |
char * | tgis_get_mapset_database_name (const char *mapset) |
Get TGIS database name. More... | |
Temporal GIS Library - connect to TGIS DB.
(C) 2012 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file temporal/lib/connect.c.
#define DATABASE_NAME 1 |
Definition at line 91 of file temporal/lib/connect.c.
#define DRIVER_NAME 0 |
Definition at line 90 of file temporal/lib/connect.c.
int tgis_get_connection | ( | dbConnection * | connection | ) |
Get Temporal GIS DB connection settings.
[out] | connection | pointer to dbConnection to be modified |
Definition at line 78 of file temporal/lib/connect.c.
References _db_connection::databaseName, DB_OK, _db_connection::driverName, G_getenv_nofatal2(), G_VAR_MAPSET, and G_zero().
char* tgis_get_database_name | ( | void | ) |
Get TGIS database name.
Definition at line 41 of file temporal/lib/connect.c.
References G_getenv_nofatal2(), G_store(), G_VAR_MAPSET, and NULL.
char* tgis_get_driver_name | ( | void | ) |
Get TGIS driver name.
Definition at line 25 of file temporal/lib/connect.c.
References G_getenv_nofatal2(), G_store(), G_VAR_MAPSET, and NULL.
char* tgis_get_mapset_database_name | ( | const char * | mapset | ) |
Get TGIS database name.
This function give a warning in case the mapset does not exists or it is not allowed to access the mapset. NULL is returned in this case..
mapset | The name of the mapset to receive the driver name from |
Definition at line 168 of file temporal/lib/connect.c.
char* tgis_get_mapset_driver_name | ( | const char * | mapset | ) |
Get TGIS driver name from a specific mapset.
This function give a warning in case the mapset does not exists or it is not allowed to access the mapset. NULL is returned in this case.
mapset | The name of the mapset to receive the driver name from |
Definition at line 152 of file temporal/lib/connect.c.
int tgis_set_connection | ( | dbConnection * | connection | ) |
Set Temporal GIS DB connection settings.
This function sets environmental variables as TGISDB_DRIVER, TGISDB_DATABASE.
connection | pointer to dbConnection with default settings |
Definition at line 60 of file temporal/lib/connect.c.
References _db_connection::databaseName, DB_OK, _db_connection::driverName, G_setenv2(), and G_VAR_MAPSET.