48#define DatumGetSTboxP(X) ((STBox *) DatumGetPointer(X))
49#define STboxPGetDatum(X) PointerGetDatum(X)
50#define PG_GETARG_STBOX_P(n) DatumGetSTboxP(PG_GETARG_DATUM(n))
51#define PG_RETURN_STBOX_P(x) return STboxPGetDatum(x)
STBox * stbox_set_srid(const STBox *box, int32 srid)
Set the SRID of a spatiotemporal box.
Definition: stbox.c:906
uintptr_t Datum
Definition: pg_ext_defs.in.h:4
signed int int32
Definition: pg_ext_defs.in.h:8
void ensure_has_T_stbox(const STBox *box)
Ensure that the temporal value has T dimension.
Definition: stbox.c:120
void ensure_has_X_stbox(const STBox *box)
Ensure that the temporal value has XY dimension.
Definition: stbox.c:109
void tstzset_stbox_slice(Datum tsdatum, STBox *box)
void periodset_stbox_slice(Datum psdatum, STBox *box)
Peak into a period set datum to find the bounding box.
Definition: stbox.c:392
Structure to represent spatiotemporal boxes.
Definition: meos.h:107