1 #ifndef GRASS_TEMPORAL_H 2 #define GRASS_TEMPORAL_H 9 #define TGISDB_DEFAULT_DRIVER "sqlite" 11 #define TGISDB_DEFAULT_SQLITE_PATH "tgis/sqlite.db" 31 #define TGIS_TYPE_MAP 0 32 #define TGIS_TYPE_STDS 1 34 #define TGIS_RASTER_MAP 1 35 #define TGIS_RASTER3D_MAP 2 36 #define TGIS_VECTOR_MAP 3 41 #define TGIS_ABSOLUTE_TIME 0 42 #define TGIS_RELATIVE_TIME 1 203 char *description,
char *semantic_type,
char *aggregation_type);
207 char *description,
char *semantic_type,
char *aggregation_type);
231 char stds_type,
char *
order,
238 char *
order,
char *where);
struct _tgisExtent tgisExtent
void tgis_free_dataset_list(tgisDatasetList *list)
void tgis_free_map_list(tgisMapList *list)
Free allocated memory of an integer list.
char * tgis_get_default_database_name(void)
Get default TGIS database name for the sqlite connection.
const char * tgis_get_default_driver_name(void)
Get default TGIS driver name.
tgisMapList * tgis_new_map_list()
Return a new integer list.
int tgis_build_topology(tgisDatasetList *A, char spatial)
tgisDataset * tgis_get_stds_info(char *stds_name, char *mapset, char stds_type)
tgisDatasetList overlapped
int tgis_register_maps(tgisMapList *list, char map_type, char *stds_name)
tgisMap ** values
Array of tgisMap struct's.
char * tgis_get_mapset_database_name(const char *)
Get TGIS database name.
struct _tgisDataset tgisDataset
int tgis_set_default_connection(void)
Sets up TGIS database connection settings using GRASS default.
int tgis_modify_stds(char *stds_name, char stds_type, char *title, char *description, char *semantic_type, char *aggregation_type)
tgisDatasetList * tgis_get_registered_maps(char *stds_name, char *mapset, char stds_type, char *order, char *where)
int tgis_set_connection(dbConnection *connection)
Set Temporal GIS DB connection settings.
char * tgis_get_database_name(void)
Get TGIS database name.
struct _tgisDataset ** values
Array of tgisDataset structs.
tgisDatasetList * tgis_get_registered_stds(char *stds_name, char *mapset, char stds_type, char temporal_type, char *order, char *where)
void tgis_init_dataset_list(tgisDatasetList *list)
char * tgis_get_driver_name(void)
Get TGIS driver name.
List of tgisDatasets struct's.
tgisDatasetList equivalent
int alloc_values
Allocated space for tgisMap struct's.
int tgis_register_map(tgisMap *map, char map_type, char *stds_name)
int n_values
Number of tgisMap struct's in the list.
List of tgisMap struct's.
void tgis_init_map_list(tgisMapList *list)
Init a tgisMapList and free allocated memory.
int tgis_unregister_map(tgisMap *map, char map_type, char *stds_name)
int tgis_update_stds(char *stds_name, char stds_type)
int alloc_values
Allocated space for tgisDataset structs.
struct _tgisDatasetList tgisDatasetList
List of tgisDatasets struct's.
int tgis_remove_stds(char *stds_name, char stds_type, char remove_maps)
void tgis_dataset_list_add(tgisDataset *dataset)
int tgis_unregister_maps(tgisMapList *list, char map_type, char *stds_name)
void tgis_map_list_add(tgisMapList *list, tgisMap *map)
Add a map to tgisMapList.
struct _tgisDataset * prev
int tgis_build_topology2(tgisDatasetList *A, tgisDatasetList *B, char spatial)
int order(int i_x, int i_y, int yNum)
struct _tgisDataset * next
tgisDatasetList * tgis_new_dataset_list()
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_create_stds(char *stds_name, char stds_type, char temporal_type, char *title, char *description, char *semantic_type, char *aggregation_type)
void tgis_map_list_insert(tgisMapList *list, char *name, char *mapset, struct TimeStamp *ts)
Insert map information into tgisMapList.
int tgis_get_connection(dbConnection *connection)
Get Temporal GIS DB connection settings.
int n_values
Number of tgisDataset structs in the list.
struct _tgisMapList tgisMapList
List of tgisMap struct's.
char * tgis_get_mapset_driver_name(const char *)
Get TGIS driver name from a specific mapset.