MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
tgeo_tile.h File Reference
#include <liblwgeom.h>
#include <meos.h>

Go to the source code of this file.

Data Structures

struct  BitMatrix
 Structure for storing a bit matrix. More...
 
struct  STboxGridState
 Struct for storing the state that persists across multiple calls generating a multidimensional grid. More...
 

Macros

#define MAXDIMS   4
 Functions for spatiotemporal bounding boxes. More...
 

Typedefs

typedef struct STboxGridState STboxGridState
 Struct for storing the state that persists across multiple calls generating a multidimensional grid. More...
 

Functions

BitMatrixbitmatrix_make (int *count, int ndims)
 Create a bit matrix. More...
 
STBoxstbox_space_time_tile (const GSERIALIZED *point, TimestampTz t, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool hasx, bool hast)
 Return a tile in the multidimensional grid of a spatiotemporal box. More...
 
bool stbox_tile_state_get (STboxGridState *state, STBox *box)
 Get the current tile of the multidimensional grid. More...
 
STboxGridStatestbox_tile_state_make (const Temporal *temp, const STBox *box, double xsize, double ysize, double zsize, const Interval *duration, POINT3DZ sorigin, TimestampTz torigin, bool border_inc)
 Create the initial state that persists across multiple calls of the function. More...
 
void stbox_tile_state_next (STboxGridState *state)
 Increment the current state to the next tile of the multidimensional grid. More...
 
void stbox_tile_state_set (double x, double y, double z, TimestampTz t, double xsize, double ysize, double zsize, int64 tunits, bool hasx, bool hasz, bool hast, int32 srid, STBox *result)
 Generate a tile from the current state of the multidimensional grid. More...
 
STboxGridStatetgeo_space_time_tile_init (const Temporal *temp, double xsize, double ysize, double zsize, const Interval *duration, const GSERIALIZED *sorigin, TimestampTz torigin, bool bitmatrix, bool border_inc, int *ntiles)
 Set the state with a temporal point and a space and possibly time grid for splitting or obtaining a set of spatiotemporal boxes. More...
 
Temporaltpoint_at_tile (const Temporal *temp, const STBox *box)
 Restrict a temporal point to a tile defined by a spatiotemporal box. More...
 
int tpoint_set_tiles (const Temporal *temp, const STboxGridState *state, BitMatrix *bm)
 Set the bit corresponding to the tiles intersecting a temporal point. More...