34#ifndef __TPOINT_TILE_H__
35#define __TPOINT_TILE_H__
38#include "general/temporal.h"
82 double size,
int64 tunits,
bool hasz,
bool hast,
int32 srid,
STBox *result);
int64 TimestampTz
Definition: pg_ext_defs.in.h:19
signed int int32
Definition: pg_ext_defs.in.h:8
long int int64
Definition: pg_ext_defs.in.h:9
int numdims
Number of dimensions.
Definition: tpoint_tile.h:49
Structure for storing a bit matrix.
Definition: tpoint_tile.h:48
Definition: postgis_ext_defs.in.h:91
Structure to represent spatiotemporal boxes.
Definition: meos.h:107
BitMatrix * bm
Optional bit matrix for speeding up the computation of the split functions.
Definition: tpoint_tile.h:66
int coords[MAXDIMS]
Coordinates of the current tile.
Definition: tpoint_tile.h:72
double y
Minimum y value of the current tile.
Definition: tpoint_tile.h:69
STBox box
Bounding box of the grid.
Definition: tpoint_tile.h:64
int64 tunits
Size of the time dimension.
Definition: tpoint_tile.h:63
TimestampTz t
Minimum t value of the current tile.
Definition: tpoint_tile.h:71
double x
Minimum x value of the current tile.
Definition: tpoint_tile.h:68
bool done
True when all tiles have been processed.
Definition: tpoint_tile.h:60
int i
Number of current tile.
Definition: tpoint_tile.h:61
double size
Size of the x, y, and z dimension.
Definition: tpoint_tile.h:62
const Temporal * temp
Optional temporal point to be split.
Definition: tpoint_tile.h:65
double z
Minimum z value of the current tile.
Definition: tpoint_tile.h:70
Struct for storing the state that persists across multiple calls generating a multidimensional grid.
Definition: tpoint_tile.h:59
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:136
bool stbox_tile_state_get(STboxGridState *state, STBox *box)
Get the current tile of the multidimensional grid.
Definition: tpoint_tile.c:561
#define MAXDIMS
Functions for spatiotemporal bounding boxes.
Definition: tpoint_tile.h:40
void stbox_tile_state_next(STboxGridState *state)
Increment the current state to the next tile of the multidimensional grid.
Definition: tpoint_tile.c:477
BitMatrix * bitmatrix_make(int *count, int numdims)
Functions for spatial and spatiotemporal tiles.
Definition: tpoint_tile.c:58
STboxGridState * stbox_tile_state_make(const Temporal *temp, const STBox *box, double size, int64 tunits, POINT3DZ sorigin, TimestampTz torigin)
Create the initial state that persists across multiple calls of the function.
Definition: tpoint_tile.c:436
struct STboxGridState STboxGridState
Struct for storing the state that persists across multiple calls generating a multidimensional grid.
void stbox_tile_set(double x, double y, double z, TimestampTz t, double size, int64 tunits, bool hasz, bool hast, int32 srid, STBox *result)
Generate a tile from the current state of the multidimensional grid.
Definition: tpoint_tile.c:399
void tpoint_set_tiles(const Temporal *temp, const STboxGridState *state, BitMatrix *bm)
Set the bit corresponding to the tiles intersecting the temporal point.
Definition: tpoint_tile.c:813