1#ifndef GRASS_TEMPORAL_H
2#define GRASS_TEMPORAL_H
8#define TGISDB_DEFAULT_DRIVER "sqlite"
10#define TGISDB_DEFAULT_SQLITE_PATH "tgis/sqlite.db"
28#define TGIS_TYPE_MAP 0
29#define TGIS_TYPE_STDS 1
31#define TGIS_RASTER_MAP 1
32#define TGIS_RASTER3D_MAP 2
33#define TGIS_VECTOR_MAP 3
38#define TGIS_ABSOLUTE_TIME 0
39#define TGIS_RELATIVE_TIME 1
248 char *
order,
char *where);
int order(int i_x, int i_y, int yNum)
Main header of GRASS DataBase Management Interface.
List of tgisDatasets struct's.
int alloc_values
Allocated space for tgisDataset structs.
struct _tgisDataset ** values
Array of tgisDataset structs.
int n_values
Number of tgisDataset structs in the list.
tgisDatasetList equivalent
tgisDatasetList overlapped
struct _tgisDataset * next
struct _tgisDataset * prev
List of tgisMap struct's.
tgisMap ** values
Array of tgisMap struct's.
int n_values
Number of tgisMap struct's in the list.
int alloc_values
Allocated space for tgisMap struct's.
char * tgis_get_driver_name(void)
Get TGIS driver name.
struct _tgisMapList tgisMapList
List of tgisMap struct's.
struct _tgisExtent tgisExtent
char * tgis_get_database_name(void)
Get TGIS database name.
int tgis_update_stds(char *stds_name, char stds_type)
void tgis_init_dataset_list(tgisDatasetList *list)
char * tgis_get_mapset_driver_name(const char *)
Get TGIS driver name from a specific mapset.
int tgis_unregister_maps(tgisMapList *list, char map_type, char *stds_name)
tgisMapList * tgis_new_map_list(void)
Return a new integer list.
char * tgis_get_default_database_name(void)
Get default TGIS database name for the sqlite connection.
char * tgis_get_mapset_database_name(const char *)
Get TGIS database name.
int tgis_register_maps(tgisMapList *list, char map_type, char *stds_name)
tgisDataset * tgis_get_stds_info(char *stds_name, char *mapset, char stds_type)
int tgis_create_stds(char *stds_name, char stds_type, char temporal_type, char *title, char *description, char *semantic_type, char *aggregation_type)
int tgis_set_connection(dbConnection *connection)
Set Temporal GIS DB connection settings.
int tgis_set_default_connection(void)
Sets up TGIS database connection settings using GRASS default.
struct _tgisDatasetList tgisDatasetList
List of tgisDatasets struct's.
int tgis_modify_stds(char *stds_name, char stds_type, char *title, char *description, char *semantic_type, char *aggregation_type)
struct _tgisDataset tgisDataset
void tgis_free_map_list(tgisMapList *list)
Free allocated memory of an integer list.
int tgis_register_map(tgisMap *map, char map_type, char *stds_name)
void tgis_init_map_list(tgisMapList *list)
Init a tgisMapList and free allocated memory.
int tgis_remove_stds(char *stds_name, char stds_type, char remove_maps)
tgisDatasetList * tgis_get_registered_stds(char *stds_name, char *mapset, char stds_type, char temporal_type, char *order, char *where)
int tgis_build_topology2(tgisDatasetList *A, tgisDatasetList *B, char spatial)
void tgis_map_list_add(tgisMapList *list, tgisMap *map)
Add a map to tgisMapList.
const char * tgis_get_default_driver_name(void)
Get default TGIS driver name.
tgisDatasetList * tgis_get_registered_maps(char *stds_name, char *mapset, char stds_type, char *order, char *where)
int tgis_build_topology(tgisDatasetList *A, char spatial)
tgisDatasetList * tgis_new_dataset_list(void)
void tgis_map_list_insert(tgisMapList *list, char *name, char *mapset, struct TimeStamp *ts)
Insert map information into tgisMapList.
void tgis_dataset_list_insert(tgisDatasetList *list, char *name, char *mapset, char *creator, DateTime *creation_time, char temporal_type, struct TimeStamp *ts, tgisExtent *extent, void *metadata, char dataset_type, char is_stds)
int tgis_get_connection(dbConnection *connection)
Get Temporal GIS DB connection settings.
int tgis_unregister_map(tgisMap *map, char map_type, char *stds_name)
void tgis_dataset_list_add(tgisDataset *dataset)
void tgis_free_dataset_list(tgisDatasetList *list)