|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
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. | |
| char * | tgis_get_database_name (void) |
| Get TGIS database name. | |
| int | tgis_set_connection (dbConnection *connection) |
| Set Temporal GIS DB connection settings. | |
| int | tgis_get_connection (dbConnection *connection) |
| Get Temporal GIS DB connection settings. | |
| char * | tgis_get_mapset_driver_name (const char *mapset) |
| Get TGIS driver name from a specific mapset. | |
| char * | tgis_get_mapset_database_name (const char *mapset) |
| Get TGIS database name. | |
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_OK, G_getenv_nofatal2(), G_VAR_MAPSET, and G_zero().
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.
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.
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.
References DATABASE_NAME.
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.
References DRIVER_NAME.
| 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_OK, G_setenv2(), and G_VAR_MAPSET.
Referenced by tgis_set_default_connection().