MobilityDB 1.1
Data Structures | Macros | Enumerations | Functions
meos.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "../postgres/postgres.h"
#include "../postgres/utils/timestamp_def.h"
#include "../postgres/utils/date.h"
#include <liblwgeom.h>
Include dependency graph for meos.h:

Go to the source code of this file.

Data Structures

struct  Match
 Struct for storing a similarity match. More...
 
struct  Set
 API of the Mobility Engine Open Source (MEOS) library. More...
 
struct  SkipList
 Structure to represent skiplists that keep the current state of an aggregation. More...
 
struct  SkipListElem
 
struct  Span
 Structure to represent spans (a.k.a. More...
 
struct  SpanSet
 Structure to represent span sets. More...
 
struct  STBox
 Structure to represent spatiotemporal boxes. More...
 
struct  TBox
 Structure to represent temporal boxes. More...
 
struct  Temporal
 Structure to represent the common structure of temporal values of any temporal subtype. More...
 
struct  TInstant
 Structure to represent temporal values of instant subtype. More...
 
struct  TSequence
 Structure to represent temporal values of instant set or sequence subtype. More...
 
struct  TSequenceSet
 Structure to represent temporal values of sequence set subtype. More...
 

Macros

#define SKIPLIST_MAXLEVEL   32
 Structure to represent skiplist elements. More...
 
#define TSEQUENCE_BBOX_PTR(seq)   ((void *)(&(seq)->period))
 
#define TSEQUENCESET_BBOX_PTR(ss)   ((void *)(&(ss)->period))
 

Enumerations

enum  interpType {
  INTERP_NONE = 0 , DISCRETE = 1 , STEP = 2 , LINEAR = 3 ,
  INTERP_NONE = 0 , DISCRETE = 1 , STEP = 2 , LINEAR = 3
}
 Enumeration that defines the interpolation types used in MobilityDB. More...
 
enum  SkipListElemType {
  TIMESTAMPTZ , PERIOD , TEMPORAL , TIMESTAMPTZ ,
  PERIOD , TEMPORAL
}
 

Functions

bool above_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool above_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly above of the second one. More...
 
bool above_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool above_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool above_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool above_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
Temporaladd_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal addition of a float and a temporal float. More...
 
Temporaladd_int_tint (int i, const Temporal *tnumber)
 Mathematical operators (+, -, *, /) and functions (round, degrees, ...) for temporal numbers. More...
 
Temporaladd_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal addition of a temporal float and a float. More...
 
Temporaladd_tint_int (const Temporal *tnumber, int i)
 Return the temporal addition of a temporal integer and an integer. More...
 
Temporaladd_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal addition of the temporal numbers. More...
 
bool adjacent_bigintspan_bigint (const Span *s, int64 i)
 Return true if an integer span and an integer are adjacent. More...
 
bool adjacent_bigintspanset_bigint (const SpanSet *ss, int64 i)
 Return true if a span set and a value are adjacent. More...
 
bool adjacent_float_tfloat (double d, const Temporal *tnumber)
 
bool adjacent_floatspan_float (const Span *s, double d)
 Return true if a float span and a float are adjacent. More...
 
bool adjacent_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool adjacent_int_tint (int i, const Temporal *tnumber)
 
bool adjacent_intspan_int (const Span *s, int i)
 Return true if an integer span and an integer are adjacent. More...
 
bool adjacent_period_temporal (const Span *p, const Temporal *temp)
 
bool adjacent_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool adjacent_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return true if a period set a timestamp are adjacent. More...
 
bool adjacent_set_span (const Set *os, const Span *s)
 
bool adjacent_set_spanset (const Set *s, const SpanSet *ss)
 
bool adjacent_span_set (const Span *s, const Set *os)
 
bool adjacent_span_span (const Span *s1, const Span *s2)
 Return true if the spans are adjacent. More...
 
bool adjacent_span_spanset (const Span *s, const SpanSet *ss)
 
bool adjacent_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool adjacent_spanset_set (const SpanSet *ss, const Set *s)
 
bool adjacent_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set and a span are adjacent. More...
 
bool adjacent_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if a span set and a span are adjacent. More...
 
bool adjacent_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the spatiotemporal boxes are adjacent. More...
 
bool adjacent_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool adjacent_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the temporal boxes are adjacent. More...
 
bool adjacent_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool adjacent_temporal_period (const Temporal *temp, const Span *p)
 
bool adjacent_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool adjacent_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool adjacent_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool adjacent_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool adjacent_tfloat_float (const Temporal *tnumber, double d)
 
bool adjacent_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool adjacent_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool adjacent_tint_int (const Temporal *tnumber, int i)
 
bool adjacent_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool adjacent_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool adjacent_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool adjacent_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool adjacent_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool adjacent_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool after_period_temporal (const Span *p, const Temporal *temp)
 
bool after_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool after_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly after the second one. More...
 
bool after_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool after_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is strictly after the second one. More...
 
bool after_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool after_temporal_period (const Temporal *temp, const Span *p)
 
bool after_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool after_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool after_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool after_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool after_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool after_timestamp_timestampset (TimestampTz t, const Set *ts)
 Return true if a timestamp is strictly after a timestamp set. More...
 
bool after_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool after_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool after_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool after_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool after_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool back_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool back_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly back of the second one. More...
 
bool back_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool back_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool back_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool back_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
Spanbbox_union_span_span (const Span *s1, const Span *s2)
 Return the union of the spans. More...
 
bool bearing_point_point (const GSERIALIZED *geo1, const GSERIALIZED *geo2, double *result)
 Return the temporal bearing between two geometry/geography points. More...
 
Temporalbearing_tpoint_point (const Temporal *temp, const GSERIALIZED *gs, bool invert)
 Return the temporal bearing between a temporal point and a geometry/geography point. More...
 
Temporalbearing_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2)
 Return the temporal bearing between two temporal points. More...
 
bool before_period_temporal (const Span *p, const Temporal *temp)
 
bool before_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool before_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return true if a period set is strictly before a timestamp. More...
 
bool before_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly before the second one. More...
 
bool before_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool before_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is strictly before the second one. More...
 
bool before_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool before_temporal_period (const Temporal *temp, const Span *p)
 
bool before_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool before_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool before_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool before_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool before_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool before_timestamp_timestampset (TimestampTz t, const Set *ts)
 Return true if a timestamp is strictly before the second one. More...
 
bool before_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool before_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool before_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool before_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool before_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool below_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool below_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly below of the second one. More...
 
bool below_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool below_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool below_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool below_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
Spanbigint_extent_transfn (Span *s, int64 i)
 Transition function for extent aggregate of base types of spans. More...
 
Setbigint_to_bigintset (int64 i)
 Cast a value as a set. More...
 
Spanbigint_to_intspan (int i)
 
Setbigintset_agg_transfn (Set *state, int64 i)
 Transition function for set aggregate of values. More...
 
int bigintset_cmp (const Set *s1, const Set *s2)
 
int64 bigintset_end_value (const Set *s)
 Return the end value of a big integer set. More...
 
bool bigintset_eq (const Set *s1, const Set *s2)
 
bool bigintset_ge (const Set *s1, const Set *s2)
 
bool bigintset_gt (const Set *s1, const Set *s2)
 
Setbigintset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
bool bigintset_le (const Set *s1, const Set *s2)
 
bool bigintset_lt (const Set *s1, const Set *s2)
 
bool bigintset_ne (const Set *s1, const Set *s2)
 
int bigintset_num_values (const Set *s)
 
int64 bigintset_start_value (const Set *s)
 Return the start value of a big integer set. More...
 
bool bigintset_value_n (const Set *s, int n, int64 *result)
 Return the n-th value of a big integer set. More...
 
int64bigintset_values (const Set *s)
 Return the array of values of a big integer set. More...
 
Spanbigintspan_in (const char *str)
 Return an integer span from its Well-Known Text (WKT) representation. More...
 
int bigintspan_lower (const Span *s)
 Return the lower bound of an integer span. More...
 
Spanbigintspan_make (int64 lower, int64 upper, bool lower_inc, bool upper_inc)
 Construct an integer span from the bounds. More...
 
char * bigintspan_out (const Span *s)
 Return the Well-Known Text (WKT) representation of a span. More...
 
void bigintspan_set_floatspan (const Span *s1, Span *s2)
 
int bigintspan_upper (const Span *s)
 Return the upper bound of an integer span. More...
 
SpanSetbigintspanset_in (const char *str)
 Return a big integer span from its Well-Known Text (WKT) representation. More...
 
int bigintspanset_lower (const SpanSet *ss)
 Return the lower bound of an integer span set. More...
 
char * bigintspanset_outbigintspanset_out (const SpanSet *ss)
 
int bigintspanset_upper (const SpanSet *ss)
 Return the upper bound of an integer span set. More...
 
bool bool_in (const char *in_str)
 Convert "t" or "f" to 1 or 0. More...
 
char * bool_out (bool b)
 Convert 1 or 0 to "t" or "f". More...
 
bool contained_bigint_bigintset (int64 i, const Set *s)
 Return true if a value is contained by a set. More...
 
bool contained_bigint_bigintspan (int64 i, const Span *s)
 Return true if an integer is contained by an integer span. More...
 
bool contained_bigint_bigintspanset (int64 i, const SpanSet *ss)
 Return true if a value is contained by a span. More...
 
bool contained_float_floatset (double d, const Set *s)
 Return true if a value is contained by a set. More...
 
bool contained_float_floatspan (double d, const Span *s)
 Return true if a float is contained by a float span. More...
 
bool contained_float_floatspanset (double d, const SpanSet *ss)
 Return true if a value is contained by a span. More...
 
bool contained_float_tfloat (double d, const Temporal *tnumber)
 
bool contained_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool contained_int_intset (int i, const Set *s)
 Return true if a value is contained by a set. More...
 
bool contained_int_intspan (int i, const Span *s)
 Return true if an integer is contained by an integer span. More...
 
bool contained_int_intspanset (int i, const SpanSet *ss)
 Return true if a value is contained by a span. More...
 
bool contained_int_tint (int i, const Temporal *tnumber)
 
bool contained_period_temporal (const Span *p, const Temporal *temp)
 
bool contained_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool contained_set_set (const Set *s1, const Set *s2)
 Return true if a set is contained by the second one. More...
 
bool contained_set_span (const Set *os, const Span *s)
 
bool contained_set_spanset (const Set *s, const SpanSet *ss)
 
bool contained_span_span (const Span *s1, const Span *s2)
 Return true if the first span is contained by the second one. More...
 
bool contained_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span is contained by a span. More...
 
bool contained_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool contained_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set is contained by a span. More...
 
bool contained_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is contained by the second one. More...
 
bool contained_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is contained by the second one. More...
 
bool contained_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool contained_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is contained by the second one. More...
 
bool contained_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool contained_temporal_period (const Temporal *temp, const Span *p)
 
bool contained_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool contained_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool contained_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool contained_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool contained_tfloat_float (const Temporal *tnumber, double d)
 
bool contained_timestamp_period (TimestampTz t, const Span *p)
 Return true if a timestamp is contained by a period. More...
 
bool contained_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool contained_timestamp_timestampset (TimestampTz t, const Set *ts)
 Return true if a timestamp is contained by a timestamp set. More...
 
bool contained_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool contained_timestampset_timestampset (const Set *ts1, const Set *ts2)
 
bool contained_tint_int (const Temporal *tnumber, int i)
 
bool contained_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool contained_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool contained_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool contained_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool contained_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool contained_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool contains_bbox_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool contains_float_tfloat (double d, const Temporal *tnumber)
 
bool contains_floatspan_float (const Span *s, double d)
 Return true if a float span contains a float. More...
 
bool contains_int_tint (int i, const Temporal *tnumber)
 
bool contains_intspan_int (const Span *s, int i)
 Return true if an integer span contains an integer. More...
 
bool contains_period_temporal (const Span *p, const Temporal *temp)
 
bool contains_period_timestamp (const Span *p, TimestampTz t)
 Return true if a period contains a timestamp. More...
 
bool contains_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool contains_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return true if a period set contains a timestamp. More...
 
bool contains_set_set (const Set *s1, const Set *s2)
 Return true if the first set contains the second one. More...
 
bool contains_span_set (const Span *s, const Set *os)
 
bool contains_span_span (const Span *s1, const Span *s2)
 Return true if the first span contains the second one. More...
 
bool contains_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span contains a span set. More...
 
bool contains_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool contains_spanset_set (const SpanSet *ss, const Set *s)
 
bool contains_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set contains a span. More...
 
bool contains_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set contains the second one. More...
 
bool contains_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box contains the second one. More...
 
bool contains_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool contains_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box contains the second one. More...
 
bool contains_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool contains_temporal_period (const Temporal *temp, const Span *p)
 
bool contains_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool contains_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool contains_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool contains_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool contains_tfloat_float (const Temporal *tnumber, double d)
 
bool contains_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool contains_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool contains_timestampset_timestamp (const Set *ts, TimestampTz t)
 Return true if a timestamp set contains a timestamp. More...
 
bool contains_timestampset_timestampset (const Set *ts1, const Set *ts2)
 
bool contains_tint_int (const Temporal *tnumber, int i)
 
bool contains_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool contains_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool contains_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool contains_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool contains_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool contains_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
textcstring2text (const char *cstring)
 Convert a C string into a text value. More...
 
double distance_floatspan_float (const Span *s, double d)
 Return the distance between a float span and a float. More...
 
double distance_intspan_int (const Span *s, int i)
 Return the distance between an integer span and an integer. More...
 
double distance_period_periodset (const Span *p, const SpanSet *ps)
 
double distance_period_timestamp (const Span *p, TimestampTz t)
 Return the distance in seconds between a period and a timestamp. More...
 
double distance_period_timestampset (const Span *p, const Set *ts)
 
double distance_periodset_period (const SpanSet *ps, const Span *p)
 
double distance_periodset_periodset (const SpanSet *ps1, const SpanSet *ps2)
 
double distance_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return the distance in seconds between a period set and a timestamp. More...
 
double distance_periodset_timestampset (const SpanSet *ps, const Set *ts)
 
double distance_set_set (const Set *s1, const Set *s2)
 Return the distance between two sets. More...
 
double distance_span_set (const Span *s, const Set *os)
 
double distance_span_span (const Span *s1, const Span *s2)
 Return the distance between two spans. More...
 
double distance_spanset_span (const SpanSet *ss, const Span *s)
 Return the distance between a span set and a span. More...
 
double distance_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the distance between two span sets. More...
 
Temporaldistance_tfloat_float (const Temporal *temp, double d)
 Return the temporal distance between a temporal float and a float. More...
 
double distance_timestamp_period (TimestampTz t, const Span *p)
 
double distance_timestamp_periodset (TimestampTz t, const SpanSet *ps)
 
double distance_timestamp_timestamp (TimestampTz t1, TimestampTz t2)
 
double distance_timestamp_timestampset (TimestampTz t, const Set *ts)
 
double distance_timestampset_period (const Set *ts, const Span *p)
 
double distance_timestampset_periodset (const Set *ts, const SpanSet *ps)
 
double distance_timestampset_timestamp (const Set *ts, TimestampTz t)
 Return the distance in seconds between a timestamp set and a timestamp. More...
 
double distance_timestampset_timestampset (const Set *ts1, const Set *ts2)
 
Temporaldistance_tint_int (const Temporal *temp, int i)
 Return the temporal distance between a temporal integer and an integer. More...
 
Temporaldistance_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return the temporal distance between two temporal numbers. More...
 
Temporaldistance_tpoint_geo (const Temporal *temp, const GSERIALIZED *geo)
 Return the temporal distance between a temporal point and a geometry/geography point. More...
 
Temporaldistance_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2)
 Return the temporal distance between two temporal points. More...
 
Temporaldiv_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal division of a float and a temporal float. More...
 
Temporaldiv_int_tint (int i, const Temporal *tnumber)
 Return the temporal division of an integer and a temporal integer. More...
 
Temporaldiv_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal division of a temporal float and a float. More...
 
Temporaldiv_tint_int (const Temporal *tnumber, int i)
 Return the temporal division of a temporal integer and an integer. More...
 
Temporaldiv_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal division of the temporal numbers. More...
 
int econtains_geo_tpoint (const GSERIALIZED *geo, const Temporal *temp)
 Return 1 if a geometry ever contains a temporal point, 0 if not, and -1 if the geometry is empty. More...
 
int edisjoint_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return 1 if a temporal point and a geometry are ever disjoint, 0 if not, and -1 if the geometry is empty. More...
 
int edisjoint_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2)
 Ever spatial relationships for temporal points. More...
 
int edwithin_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs, double dist)
 Return 1 if a geometry and a temporal point are ever within the given distance, 0 if not, -1 if a geometry is empty. More...
 
int edwithin_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2, double dist)
 Return 1 if the temporal points are ever within the given distance, 0 if not, -1 if the temporal points do not intersect on time. More...
 
int eintersects_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return 1 if a geometry and a temporal point ever intersect, 0 if not, and -1 if the geometry is empty. More...
 
int eintersects_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2)
 Return 1 if the temporal points ever intersect, 0 if not, and -1 if the temporal points do not intersect in time. More...
 
int etouches_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return 1 if a temporal point and a geometry ever touch, 0 if not, and -1 if the geometry is empty. More...
 
double float_bucket (double value, double size, double origin)
 Return the initial value of the bucket in which a float value falls. More...
 
Spanfloat_extent_transfn (Span *s, double d)
 Transition function for extent aggregate of base types of spans. More...
 
TBoxfloat_period_to_tbox (double d, const Span *p)
 Return a temporal box from a float and a period. More...
 
TBoxfloat_timestamp_to_tbox (double d, TimestampTz t)
 Return a temporal box from a float and a timestamp. More...
 
Spanfloat_to_floaspan (double d)
 Cast a value as a span. More...
 
Setfloat_to_floatset (double d)
 Cast a value as a set. More...
 
TBoxfloat_to_tbox (double d)
 Cast a float to a temporal box. More...
 
Setfloatset_agg_transfn (Set *state, double d)
 Transition function for set aggregate of values. More...
 
int floatset_cmp (const Set *s1, const Set *s2)
 
double floatset_end_value (const Set *s)
 Return the end value of a float set. More...
 
bool floatset_eq (const Set *s1, const Set *s2)
 
bool floatset_ge (const Set *s1, const Set *s2)
 
bool floatset_gt (const Set *s1, const Set *s2)
 
Setfloatset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
bool floatset_le (const Set *s1, const Set *s2)
 
bool floatset_lt (const Set *s1, const Set *s2)
 
bool floatset_ne (const Set *s1, const Set *s2)
 
int floatset_num_values (const Set *s)
 
double floatset_start_value (const Set *s)
 Return the start value of a float set. More...
 
bool floatset_value_n (const Set *s, int n, double *result)
 Return the n-th value of a float set. More...
 
double * floatset_values (const Set *s)
 Return the array of values of a float set. More...
 
Spanfloatspan_bucket_list (const Span *bounds, double size, double origin, int *newcount)
 Return the bucket list from an integer span. More...
 
Spanfloatspan_in (const char *str)
 Return a float span from its Well-Known Text (WKT) representation. More...
 
double floatspan_lower (const Span *s)
 Return the lower bound of a float span. More...
 
Spanfloatspan_make (double lower, double upper, bool lower_inc, bool upper_inc)
 Construct a span from the bounds. More...
 
char * floatspan_out (const Span *s, int maxdd)
 Return the Well-Known Text (WKT) representation of a span. More...
 
void floatspan_set_bigintspan (const Span *s1, Span *s2)
 
void floatspan_set_intspan (const Span *s1, Span *s2)
 Set the second span with the first one transformed to intspan. More...
 
double floatspan_upper (const Span *s)
 Return the upper bound of a float span. More...
 
SpanSetfloatspanset_in (const char *str)
 Return a float span from its Well-Known Text (WKT) representation. More...
 
double floatspanset_lower (const SpanSet *ss)
 Return the lower bound of a float span set. More...
 
char * floatspanset_out (const SpanSet *ss, int maxdd)
 Return the Well-Known Text (WKT) representation of a span set. More...
 
double floatspanset_upper (const SpanSet *ss)
 Return the upper bound of a float span set. More...
 
bool front_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool front_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly in front of the second one. More...
 
bool front_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool front_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool front_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool front_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
STBoxgeo_expand_space (const GSERIALIZED *gs, double d)
 Return the bounding box of a temporal point expanded on the spatial dimension. More...
 
STBoxgeo_period_to_stbox (const GSERIALIZED *gs, const Span *p)
 Return a spatiotemporal box from a geometry/geography and a period. More...
 
STBoxgeo_timestamp_to_stbox (const GSERIALIZED *gs, TimestampTz t)
 Return a spatiotemporal box from a geometry/geography and a timestamp. More...
 
STBoxgeo_to_stbox (const GSERIALIZED *gs)
 Cast a geometry/geography to a spatiotemporal box. More...
 
Temporalgeo_to_tpoint (const GSERIALIZED *geo)
 Converts the PostGIS trajectory geometry/geography where the M coordinates encode the timestamps in Unix epoch into a temporal point. More...
 
char * geoset_as_ewkt (const Set *set, int maxdd)
 Return the Extended Well-Known Text (EWKT) representation a geoset. More...
 
char * geoset_as_text (const Set *set, int maxdd)
 Return the Well-Known Text (WKT) representation a geoset. More...
 
int geoset_srid (const Set *set)
 Return the SRID of a geoset point. More...
 
byteagserialized_as_ewkb (const GSERIALIZED *geom, char *type)
 Return the EWKB representation of a geometry. More...
 
char * gserialized_as_ewkt (const GSERIALIZED *geom, int precision)
 Return the EWKT representation (and optionally a SRID) of a geometry. More...
 
char * gserialized_as_geojson (const GSERIALIZED *geom, int option, int precision, char *srs)
 Output a geometry in GeoJSON format. More...
 
char * gserialized_as_hexewkb (const GSERIALIZED *geom, const char *type)
 Return the WKB representation of a geometry in hex-encoded ASCII. More...
 
char * gserialized_as_text (const GSERIALIZED *geom, int precision)
 Return the WKT representation (and optionally a SRID) of a geometry. More...
 
GSERIALIZEDgserialized_from_ewkb (const bytea *bytea_wkb, int32 srid)
 Return a geometry from its EWKB representation. More...
 
GSERIALIZEDgserialized_from_geojson (const char *geojson)
 Input a geometry from GeoJSON format. More...
 
GSERIALIZEDgserialized_from_hexewkb (const char *wkt)
 Return a geometry from its WKT representation. More...
 
GSERIALIZEDgserialized_from_text (char *wkt, int srid)
 Return a geometry from its WKT representation (and optionally a SRID) More...
 
GSERIALIZEDgserialized_in (char *input, int32 geom_typmod)
 Input function for geometries. More...
 
char * gserialized_out (const GSERIALIZED *geom)
 Output function for geometries. More...
 
int int_bucket (int value, int size, int origin)
 Return the initial value of the bucket in which an integer value falls. More...
 
Spanint_extent_transfn (Span *s, int i)
 Transition function for extent aggregate of base types of spans. More...
 
TBoxint_period_to_tbox (int i, const Span *p)
 Return a temporal box from an integer and a period. More...
 
TBoxint_timestamp_to_tbox (int i, TimestampTz t)
 Return a temporal box from an integer and a timestamp. More...
 
Setint_to_intset (int i)
 Cast a value as a set. More...
 
Spanint_to_intspan (int i)
 Cast a value as a span. More...
 
TBoxint_to_tbox (int i)
 Cast an integer to a temporal box. More...
 
bool inter_stbox_stbox (const STBox *box1, const STBox *box2, STBox *result)
 Set a spatiotemporal box with the result of the intersection of the first two boxes. More...
 
bool inter_tbox_tbox (const TBox *box1, const TBox *box2, TBox *result)
 Set a temporal box with the result of the intersection of the first two temporal boxes. More...
 
bool intersection_period_timestamp (const Span *p, TimestampTz t, TimestampTz *result)
 Return the intersection of a period and a timestamp. More...
 
bool intersection_periodset_timestamp (const SpanSet *ps, TimestampTz t, TimestampTz *result)
 Return the intersection of a period set and a timestamp. More...
 
Setintersection_set_set (const Set *s1, const Set *s2)
 Return the intersection of two sets. More...
 
Setintersection_span_set (const Span *s, const Set *os)
 
Spanintersection_span_span (const Span *s1, const Span *s2)
 Return the intersection of two spans. More...
 
Setintersection_spanset_set (const SpanSet *ss, const Set *s)
 
SpanSetintersection_spanset_span (const SpanSet *ss, const Span *s)
 Return the intersection of a span set and a span. More...
 
SpanSetintersection_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the intersection of two span sets. More...
 
STBoxintersection_stbox_stbox (const STBox *box1, const STBox *box2)
 Return the intersection of the spatiotemporal boxes. More...
 
TBoxintersection_tbox_tbox (const TBox *box1, const TBox *box2)
 Return the intersection of the spatiotemporal boxes. More...
 
bool intersection_timestamp_period (TimestampTz t, const Span *p, TimestampTz *result)
 
Setintersection_timestampset_period (const Set *ts, const Span *p)
 
Setintersection_timestampset_periodset (const Set *ts, const SpanSet *ps)
 
bool intersection_timestampset_timestamp (const Set *ts, const TimestampTz t, TimestampTz *result)
 Return the intersection of a timestamp set and a timestamp. More...
 
Setintersection_timestampset_timestampset (const Set *ts1, const Set *ts2)
 
Setintset_agg_transfn (Set *state, int i)
 
int intset_cmp (const Set *s1, const Set *s2)
 
int intset_end_value (const Set *s)
 Return the end value of an integer set. More...
 
bool intset_eq (const Set *s1, const Set *s2)
 
bool intset_ge (const Set *s1, const Set *s2)
 
bool intset_gt (const Set *s1, const Set *s2)
 
Setintset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
bool intset_le (const Set *s1, const Set *s2)
 
bool intset_lt (const Set *s1, const Set *s2)
 
bool intset_ne (const Set *s1, const Set *s2)
 
int intset_num_values (const Set *s)
 
int intset_start_value (const Set *s)
 Return the start value of an integer set. More...
 
bool intset_value_n (const Set *s, int n, int *result)
 Return the n-th value of an integer set. More...
 
int * intset_values (const Set *s)
 Return the array of values of an integer set. More...
 
Spanintspan_bucket_list (const Span *bounds, int size, int origin, int *newcount)
 Return the bucket list from an integer span. More...
 
Spanintspan_in (const char *str)
 Return an integer span from its Well-Known Text (WKT) representation. More...
 
int intspan_lower (const Span *s)
 Return the lower bound of an integer span. More...
 
Spanintspan_make (int lower, int upper, bool lower_inc, bool upper_inc)
 Construct an integer span from the bounds. More...
 
char * intspan_out (const Span *s)
 Return the Well-Known Text (WKT) representation of a span. More...
 
void intspan_set_floatspan (const Span *s1, Span *s2)
 Set the second span with the first one transformed to floatspan. More...
 
int intspan_upper (const Span *s)
 Return the upper bound of an integer span. More...
 
SpanSetintspanset_in (const char *str)
 Return an integer span from its Well-Known Text (WKT) representation. More...
 
int intspanset_lower (const SpanSet *ss)
 Return the lower bound of an integer span set. More...
 
char * intspanset_out (const SpanSet *ss)
 Return the Well-Known Text (WKT) representation of a span set. More...
 
int intspanset_upper (const SpanSet *ss)
 Return the upper bound of an integer span set. More...
 
bool left_float_floatspan (double d, const Span *s)
 Return true if a float is strictly to the left of a float span. More...
 
bool left_float_tfloat (double d, const Temporal *tnumber)
 
bool left_floatspan_float (const Span *s, double d)
 Return true if a float span is strictly to the left of a float. More...
 
bool left_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool left_int_intspan (int i, const Span *s)
 Return true if an integer is strictly to the left of an integer span. More...
 
bool left_int_tint (int i, const Temporal *tnumber)
 
bool left_intspan_int (const Span *s, int i)
 Return true if an integer span is strictly to the left of an integer. More...
 
bool left_set_set (const Set *s1, const Set *s2)
 Return true if the first set is strictly to the left of a second one. More...
 
bool left_set_span (const Set *os, const Span *s)
 
bool left_set_spanset (const Set *s, const SpanSet *ss)
 
bool left_span_set (const Span *s, const Set *os)
 
bool left_span_span (const Span *s1, const Span *s2)
 Return true if the first span is strictly to the left of the second one. More...
 
bool left_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span is strictly before a span set. More...
 
bool left_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool left_spanset_set (const SpanSet *ss, const Set *s)
 
bool left_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set is strictly before a span. More...
 
bool left_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is strictly before the second one. More...
 
bool left_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly to the left of the second one. More...
 
bool left_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool left_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is strictly to the left of the second one. More...
 
bool left_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool left_tfloat_float (const Temporal *tnumber, double d)
 
bool left_tint_int (const Temporal *tnumber, int i)
 
bool left_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool left_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool left_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool left_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool left_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool left_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
void meos_finalize (void)
 
void meos_initialize (const char *tz_str)
 
SpanSetminus_period_timestamp (const Span *p, TimestampTz t)
 Return the difference of a period and a timestamp. More...
 
SpanSetminus_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return the difference of a period set and a timestamp. More...
 
Setminus_set_set (const Set *s1, const Set *s2)
 Return the difference of two sets. More...
 
Setminus_set_span (const Set *os, const Span *s)
 
Setminus_set_spanset (const Set *s, const SpanSet *ss)
 
SpanSetminus_span_set (const Span *s, const Set *os)
 
SpanSetminus_span_span (const Span *s1, const Span *s2)
 Return the difference of two spans. More...
 
SpanSetminus_span_spanset (const Span *s, const SpanSet *ss)
 Return the difference of a span and a span set. More...
 
SpanSetminus_spanset_set (const SpanSet *ss, const Set *s)
 
SpanSetminus_spanset_span (const SpanSet *ss, const Span *s)
 Return the difference of a span set and a span. More...
 
SpanSetminus_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the difference of two span sets. More...
 
bool minus_timestamp_period (TimestampTz t, const Span *p, TimestampTz *result)
 Return the difference of a timestamp and a period. More...
 
bool minus_timestamp_periodset (TimestampTz t, const SpanSet *ps, TimestampTz *result)
 Return the difference of a timestamp and a period set. More...
 
Setminus_timestampset_timestamp (const Set *ts, TimestampTz t)
 Return the difference of a timestamp set and a timestamp. More...
 
Setminus_timestampset_timestampset (const Set *ts1, const Set *ts2)
 
Temporalmult_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal multiplication of a float and a temporal float. More...
 
Temporalmult_int_tint (int i, const Temporal *tnumber)
 Return the temporal multiplication of an integer and a temporal integer. More...
 
Temporalmult_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal multiplication of a temporal float and a float. More...
 
Temporalmult_tint_int (const Temporal *tnumber, int i)
 Return the temporal multiplication of a temporal integer and an integer. More...
 
Temporalmult_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal multiplication of the temporal numbers. More...
 
double nad_stbox_geo (const STBox *box, const GSERIALIZED *gs)
 Return the nearest approach distance between a spatiotemporal box and a geometry. More...
 
double nad_stbox_stbox (const STBox *box1, const STBox *box2)
 Return the nearest approach distance between the spatio-temporal boxes. More...
 
double nad_tbox_tbox (const TBox *box1, const TBox *box2)
 Return the nearest approach distance between the temporal boxes. More...
 
double nad_tfloat_float (const Temporal *temp, double d)
 Return the nearest approach distance between a temporal number and a number. More...
 
double nad_tfloat_tfloat (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal floats. More...
 
int nad_tint_int (const Temporal *temp, int i)
 Return the nearest approach distance between a temporal number and a number. More...
 
int nad_tint_tint (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal integers. More...
 
double nad_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return the nearest approach distance between a temporal number and a temporal box. More...
 
double nad_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return the nearest approach distance between a temporal point and a geometry. More...
 
double nad_tpoint_stbox (const Temporal *temp, const STBox *box)
 Return the nearest approach distance between a temporal point and a spatio-temporal box. More...
 
double nad_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between the temporal points. More...
 
TInstantnai_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return the nearest approach instant between a temporal point and a geometry. More...
 
TInstantnai_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach instant between the temporal points. More...
 
void numspan_set_floatspan (const Span *s1, Span *s2)
 Set the second span with the first one transformed to floatspan. More...
 
bool overabove_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool overabove_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box does not extend below of the second one. More...
 
bool overabove_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overabove_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool overabove_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overabove_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overafter_period_temporal (const Span *p, const Temporal *temp)
 
bool overafter_period_timestamp (const Span *p, TimestampTz t)
 Return true if a period is not before a timestamp. More...
 
bool overafter_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool overafter_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return true if a span set does not extend to the left of a value. More...
 
bool overafter_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first temporal box does not extend before the second one. More...
 
bool overafter_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overafter_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box does not extend before the second one. More...
 
bool overafter_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool overafter_temporal_period (const Temporal *temp, const Span *p)
 
bool overafter_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool overafter_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool overafter_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool overafter_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool overafter_timestamp_period (TimestampTz t, const Span *p)
 Return true if a timestamp is not before a period. More...
 
bool overafter_timestamp_periodset (TimestampTz t, const SpanSet *ps)
 Return true if a timestamp is not before a period set. More...
 
bool overafter_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool overafter_timestamp_timestampset (TimestampTz t, const Set *ts)
 Return true if a timestamp is not before a timestamp set. More...
 
bool overafter_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool overafter_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool overafter_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool overafter_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overafter_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overback_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool overback_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box does not extend to the front of the second one. More...
 
bool overback_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overback_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool overback_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overback_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overbefore_period_temporal (const Span *p, const Temporal *temp)
 
bool overbefore_period_timestamp (const Span *p, TimestampTz t)
 Return true if a period is not after a timestamp. More...
 
bool overbefore_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool overbefore_periodset_timestamp (const SpanSet *ps, TimestampTz t)
 Return true if a period set is not after a timestamp. More...
 
bool overbefore_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first temporal box does not extend after the second one. More...
 
bool overbefore_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overbefore_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box does not extend after the second one. More...
 
bool overbefore_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool overbefore_temporal_period (const Temporal *temp, const Span *p)
 
bool overbefore_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool overbefore_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool overbefore_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool overbefore_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool overbefore_timestamp_period (TimestampTz t, const Span *p)
 Return true if a timestamp is not after a period. More...
 
bool overbefore_timestamp_periodset (TimestampTz t, const SpanSet *ps)
 Return true if a timestamp is not after a period set. More...
 
bool overbefore_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool overbefore_timestamp_timestampset (TimestampTz t, const Set *ts)
 Return true if a timestamp is not after a timestamp set. More...
 
bool overbefore_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool overbefore_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool overbefore_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool overbefore_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overbefore_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overbelow_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool overbelow_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box does not extend above of the second one. More...
 
bool overbelow_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overbelow_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool overbelow_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overbelow_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overfront_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool overfront_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box does not extend to the back of the second one. More...
 
bool overfront_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overfront_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool overfront_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overfront_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overlaps_float_tfloat (double d, const Temporal *tnumber)
 
bool overlaps_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool overlaps_int_tint (int i, const Temporal *tnumber)
 
bool overlaps_set_set (const Set *s1, const Set *s2)
 Return true if the sets overlap. More...
 
bool overlaps_span_set (const Span *s, const Set *os)
 
bool overlaps_span_span (const Span *s1, const Span *s2)
 Return true if the spans overlap. More...
 
bool overlaps_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool overlaps_spanset_set (const SpanSet *ss, const Set *s)
 
bool overlaps_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span and a span set overlap. More...
 
bool overlaps_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if two span sets overlap. More...
 
bool overlaps_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the spatiotemporal boxes overlap. More...
 
bool overlaps_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overlaps_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the temporal boxes overlap. More...
 
bool overlaps_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool overlaps_temporal_period (const Temporal *temp, const Span *p)
 
bool overlaps_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool overlaps_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool overlaps_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool overlaps_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool overlaps_tfloat_float (const Temporal *tnumber, double d)
 
bool overlaps_timestampset_period (const Set *ts, const Span *p)
 
bool overlaps_tint_int (const Temporal *tnumber, int i)
 
bool overlaps_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool overlaps_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool overlaps_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool overlaps_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool overlaps_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overlaps_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overleft_float_floatspan (double d, const Span *s)
 Return true if a float does not extend to the right of a float span. More...
 
bool overleft_float_tfloat (double d, const Temporal *tnumber)
 
bool overleft_floatspan_float (const Span *s, double d)
 Return true if a float span does not extend to the right of a float. More...
 
bool overleft_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool overleft_int_intspan (int i, const Span *s)
 Return true if an integer does not extend to the right of an integer span. More...
 
bool overleft_int_tint (int i, const Temporal *tnumber)
 
bool overleft_intspan_int (const Span *s, int i)
 Return true if an integer span does not extend to the right of an integer. More...
 
bool overleft_set_set (const Set *s1, const Set *s2)
 Return true if the first set does not extend to the right of the second one. More...
 
bool overleft_set_span (const Set *os, const Span *s)
 
bool overleft_set_spanset (const Set *s, const SpanSet *ss)
 
bool overleft_span_set (const Span *s, const Set *os)
 
bool overleft_span_span (const Span *s1, const Span *s2)
 Return true if the first span does not extend to the right of the second one. More...
 
bool overleft_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span does not extend to the right of a span set. More...
 
bool overleft_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool overleft_spanset_set (const SpanSet *ss, const Set *s)
 
bool overleft_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set does not extend to the right of a span. More...
 
bool overleft_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set does not extend to the right of the second one. More...
 
bool overleft_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box does not extend to the right of the second one. More...
 
bool overleft_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overleft_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box does not extend to the right of the second one. More...
 
bool overleft_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool overleft_tfloat_float (const Temporal *tnumber, double d)
 
bool overleft_tint_int (const Temporal *tnumber, int i)
 
bool overleft_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool overleft_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool overleft_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool overleft_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool overleft_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overleft_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool overright_float_floatspan (double d, const Span *s)
 Return true if a float does not extend to the left of a float span. More...
 
bool overright_float_tfloat (double d, const Temporal *tnumber)
 
bool overright_floatspan_float (const Span *s, double d)
 Return true if a float span does not extend to the left of a float. More...
 
bool overright_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool overright_int_intspan (int i, const Span *s)
 Return true if an integer does not extend to the left of an integer span. More...
 
bool overright_int_tint (int i, const Temporal *tnumber)
 
bool overright_intspan_int (const Span *s, int i)
 Return true if an integer span does not extend to the left of an integer. More...
 
bool overright_set_set (const Set *s1, const Set *s2)
 Return true if the first set does not extend to the left of the second one. More...
 
bool overright_set_span (const Set *os, const Span *s)
 
bool overright_set_spanset (const Set *s, const SpanSet *ss)
 
bool overright_span_set (const Span *s, const Set *os)
 
bool overright_span_span (const Span *s1, const Span *s2)
 Return true if the first span does not extend to the left of the second one. More...
 
bool overright_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span does not extend to the left of a span set. More...
 
bool overright_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool overright_spanset_set (const SpanSet *ss, const Set *s)
 
bool overright_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set does not extend to the right of a span. More...
 
bool overright_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set does not extend to the right of the second one. More...
 
bool overright_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatio temporal box does not extend to the left of the second one. More...
 
bool overright_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool overright_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box does not extend to the left of the second one. More...
 
bool overright_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool overright_tfloat_float (const Temporal *tnumber, double d)
 
bool overright_tint_int (const Temporal *tnumber, int i)
 
bool overright_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool overright_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool overright_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool overright_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool overright_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool overright_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
Spanperiod_bucket_list (const Span *bounds, const Interval *duration, TimestampTz origin, int *newcount)
 Return the bucket list from a period. More...
 
Intervalperiod_duration (const Span *s)
 Return the duration of a period as an interval. More...
 
Spanperiod_in (const char *str)
 Return a period from its Well-Known Text (WKT) representation. More...
 
TimestampTz period_lower (const Span *p)
 Return the lower bound of a period. More...
 
Spanperiod_make (TimestampTz lower, TimestampTz upper, bool lower_inc, bool upper_inc)
 Construct a period from the bounds. More...
 
char * period_out (const Span *s)
 Return the Well-Known Text (WKT) representation of a span. More...
 
void period_shift_tscale (Span *p, const Interval *shift, const Interval *duration)
 Shift and/or scale a period by the intervals. More...
 
SkipListperiod_tcount_transfn (SkipList *state, const Span *p)
 Transition function for temporal count aggregate of periods. More...
 
STBoxperiod_to_stbox (const Span *p)
 Cast a period to a spatiotemporal box. More...
 
TBoxperiod_to_tbox (const Span *p)
 Cast a period to a temporal box. More...
 
Spanperiod_tprecision (const Span *s, const Interval *duration, TimestampTz torigin)
 Set the precision of a time value according to period buckets. More...
 
SpanSetperiod_tunion_finalfn (SkipList *state)
 Final function for union aggregation of period (set) values. More...
 
SkipListperiod_tunion_transfn (SkipList *state, const Span *p)
 Generic transition function for aggregating period values. More...
 
TimestampTz period_upper (const Span *p)
 Return the upper bound of a period. More...
 
Intervalperiodset_duration (const SpanSet *ps, bool boundspan)
 Return the duration of a period set. More...
 
TimestampTz periodset_end_timestamp (const SpanSet *ps)
 Return the end timestamp of a period set. More...
 
SpanSetperiodset_in (const char *str)
 Return a period set from its Well-Known Text (WKT) representation. More...
 
TimestampTz periodset_lower (const SpanSet *ps)
 Return the lower bound of a period. More...
 
int periodset_num_timestamps (const SpanSet *ps)
 Return the number of timestamps of a period set. More...
 
char * periodset_out (const SpanSet *ss)
 Return the Well-Known Text (WKT) representation of a span set. More...
 
SpanSetperiodset_shift_tscale (const SpanSet *ps, const Interval *shift, const Interval *duration)
 Return a period set shifted and/or scaled by the intervals. More...
 
TimestampTz periodset_start_timestamp (const SpanSet *ps)
 Return the start timestamp of a period set. More...
 
SkipListperiodset_tcount_transfn (SkipList *state, const SpanSet *ps)
 Transition function for temporal count aggregate of period sets. More...
 
bool periodset_timestamp_n (const SpanSet *ps, int n, TimestampTz *result)
 Return the n-th timestamp of a period set. More...
 
TimestampTzperiodset_timestamps (const SpanSet *ps, int *count)
 Return the timestamps of a period set. More...
 
STBoxperiodset_to_stbox (const SpanSet *ps)
 Cast a period set to a spatiotemporal box. More...
 
TBoxperiodset_to_tbox (const SpanSet *ps)
 Cast a period set to a temporal box. More...
 
SpanSetperiodset_tprecision (const SpanSet *ss, const Interval *duration, TimestampTz torigin)
 Set the precision of a time value into an array of disjoint fragments. More...
 
SkipListperiodset_tunion_transfn (SkipList *state, const SpanSet *ps)
 Generic transition function for aggregating period set values. More...
 
TimestampTz periodset_upper (const SpanSet *ps)
 Return the upper bound of a period. More...
 
DateADT pg_date_in (const char *str)
 Convert a string to a date in internal date format. More...
 
char * pg_date_out (DateADT date)
 Convert a date in internal date format to a string. More...
 
int pg_interval_cmp (const Interval *interval1, const Interval *interval2)
 Compare the two intervals. More...
 
Intervalpg_interval_in (const char *str, int32 typmod)
 Convert a string to an interval. More...
 
Intervalpg_interval_make (int32 years, int32 months, int32 weeks, int32 days, int32 hours, int32 mins, double secs)
 Interval constructor. More...
 
Intervalpg_interval_mul (const Interval *span, double factor)
 Multiply an interval by a scalar. More...
 
char * pg_interval_out (const Interval *span)
 Convert a time span to external form. More...
 
Intervalpg_interval_pl (const Interval *span1, const Interval *span2)
 Add an interval to a timestamp data type. More...
 
TimeADT pg_time_in (const char *str, int32 typmod)
 Convert a string to a time. More...
 
char * pg_time_out (TimeADT time)
 Convert a time to a string. More...
 
Timestamp pg_timestamp_in (const char *str, int32 typmod)
 Convert a string to a timestamp without time zone. More...
 
Intervalpg_timestamp_mi (TimestampTz dt1, TimestampTz dt2)
 Compute the difference of two timestamps. More...
 
TimestampTz pg_timestamp_mi_interval (TimestampTz timestamp, const Interval *span)
 Add an interval to a timestamp data type. More...
 
char * pg_timestamp_out (Timestamp dt)
 Convert a timestamp without timezone to a string. More...
 
TimestampTz pg_timestamp_pl_interval (TimestampTz timestamp, const Interval *span)
 Add an interval to a timestamp data type. More...
 
TimestampTz pg_timestamptz_in (const char *str, int32 typmod)
 Convert a string to a timestamp with time zone. More...
 
char * pg_timestamptz_out (TimestampTz dt)
 Convert a timestamp with timezone to a string. More...
 
bool pgis_gserialized_same (const GSERIALIZED *geom1, const GSERIALIZED *geom2)
 Return true if the geometries are the same. More...
 
bool right_float_floatspan (double d, const Span *s)
 Return true if a float is strictly to the right of a float span. More...
 
bool right_float_tfloat (double d, const Temporal *tnumber)
 
bool right_floatspan_float (const Span *s, double d)
 Return true if a float is strictly to the right of a float span. More...
 
bool right_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool right_int_intspan (int i, const Span *s)
 Return true if an integer is strictly to the right of an integer span. More...
 
bool right_int_tint (int i, const Temporal *tnumber)
 
bool right_intspan_int (const Span *s, int i)
 Return true if an integer span is strictly to the right of an integer. More...
 
bool right_set_set (const Set *s1, const Set *s2)
 Return true if the first set is strictly to the right of the second one. More...
 
bool right_set_span (const Set *os, const Span *s)
 
bool right_set_spanset (const Set *s, const SpanSet *ss)
 
bool right_span_set (const Span *s, const Set *os)
 
bool right_span_span (const Span *s1, const Span *s2)
 Return true if the first span is strictly to right the of the second one. More...
 
bool right_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span is strictly to the right of a span set. More...
 
bool right_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool right_spanset_set (const SpanSet *ss, const Set *s)
 
bool right_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set is strictly after a span. More...
 
bool right_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is strictly after the second one. More...
 
bool right_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is strictly to the right of the second one. More...
 
bool right_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool right_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is strictly to the right of the second one. More...
 
bool right_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool right_tfloat_float (const Temporal *tnumber, double d)
 
bool right_tint_int (const Temporal *tnumber, int i)
 
bool right_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool right_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool right_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool right_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool right_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool right_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
bool same_float_tfloat (double d, const Temporal *tnumber)
 
bool same_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 
bool same_int_tint (int i, const Temporal *tnumber)
 
bool same_period_temporal (const Span *p, const Temporal *temp)
 
bool same_periodset_temporal (const SpanSet *ps, const Temporal *temp)
 
bool same_span_tnumber (const Span *span, const Temporal *tnumber)
 
bool same_stbox_stbox (const STBox *box1, const STBox *box2)
 Return true if the spatiotemporal boxes are equal on the common dimensions. More...
 
bool same_stbox_tpoint (const STBox *stbox, const Temporal *tpoint)
 
bool same_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the temporal boxes are equal on the common dimensions. More...
 
bool same_tbox_tnumber (const TBox *tbox, const Temporal *tnumber)
 
bool same_temporal_period (const Temporal *temp, const Span *p)
 
bool same_temporal_periodset (const Temporal *temp, const SpanSet *ps)
 
bool same_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 
bool same_temporal_timestamp (const Temporal *temp, TimestampTz t)
 
bool same_temporal_timestampset (const Temporal *temp, const Set *ts)
 
bool same_tfloat_float (const Temporal *tnumber, double d)
 
bool same_timestamp_temporal (TimestampTz t, const Temporal *temp)
 
bool same_timestampset_temporal (const Set *ts, const Temporal *temp)
 
bool same_tint_int (const Temporal *tnumber, int i)
 
bool same_tnumber_span (const Temporal *tnumber, const Span *span)
 
bool same_tnumber_tbox (const Temporal *tnumber, const TBox *tbox)
 
bool same_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 
bool same_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 
bool same_tpoint_stbox (const Temporal *tpoint, const STBox *stbox)
 
bool same_tpoint_tpoint (const Temporal *tpoint1, const Temporal *tpoint2)
 
Setset_agg_combinefn (Set *state1, Set *state2)
 
Setset_agg_finalfn (Set *state)
 Transition function for set aggregate of values. More...
 
uint8_t * set_as_wkb (const Set *s, uint8_t variant, size_t *size_out)
 Return the WKB representation of a set. More...
 
int set_cmp (const Set *s1, const Set *s2)
 Return -1, 0, or 1 depending on whether the first set is less than, equal, or greater than the second one. More...
 
Setset_copy (const Set *ts)
 Return a copy of a set. More...
 
Datum set_end_value (const Set *s)
 Return the end value of a set. More...
 
bool set_eq (const Set *s1, const Set *s2)
 Return true if the first set is equal to the second one. More...
 
Spanset_extent_transfn (Span *span, const Set *set)
 Transition function for extent aggregate of timestamp set values. More...
 
Setset_from_hexwkb (const char *hexwkb)
 Return a set from its WKB representation in hex-encoded ASCII. More...
 
Setset_from_wkb (const uint8_t *wkb, int size)
 Return a set from its Well-Known Binary (WKB) representation. More...
 
bool set_ge (const Set *s1, const Set *s2)
 Return true if the first set is greater than or equal to the second one. More...
 
bool set_gt (const Set *s1, const Set *s2)
 Return true if the first set is greater than the second one. More...
 
uint32 set_hash (const Set *s)
 Return the 32-bit hash of a set. More...
 
uint64 set_hash_extended (const Set *s, uint64 seed)
 Return the 64-bit hash of a set using a seed. More...
 
bool set_le (const Set *s1, const Set *s2)
 Return true if the first set is less than or equal to the second one. More...
 
bool set_lt (const Set *s1, const Set *s2)
 Return true if the first set is less than the second one. More...
 
int set_mem_size (const Set *s)
 Return the size in bytes of a set. More...
 
bool set_ne (const Set *s1, const Set *s2)
 Return true if the first set is different from the second one. More...
 
int set_num_values (const Set *s)
 Return the number of values of a set. More...
 
char * set_out (const Set *s, int maxdd)
 Return the Well-Known Text (WKT) representation of a set. More...
 
void set_set_span (const Set *os, Span *s)
 Set the last argument to the bounding span of a set. More...
 
Setset_shift (const Set *s, Datum shift)
 Shift the values of set. More...
 
Datum set_start_value (const Set *s)
 Return the start value of a set. More...
 
Spanset_to_span (const Set *s)
 Return the bounding span of a set. More...
 
SpanSetset_to_spanset (const Set *s)
 Cast a set as a span set. More...
 
bool set_value_n (const Set *s, int n, Datum *result)
 Return the n-th value of a set. More...
 
Datumset_values (const Set *s)
 Return the array of values of a set. More...
 
bool shortestline_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs, GSERIALIZED **result)
 Return the line connecting the nearest approach point between a temporal point and a geometry. More...
 
bool shortestline_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2, GSERIALIZED **result)
 Return the line connecting the nearest approach point between the temporal points. More...
 
uint8_t * span_as_wkb (const Span *s, uint8_t variant, size_t *size_out)
 Return the WKB representation of a span. More...
 
int span_cmp (const Span *s1, const Span *s2)
 Return -1, 0, or 1 depending on whether the first span is less than, equal, or greater than the second one. More...
 
Spanspan_copy (const Span *s)
 Return a copy of a span. More...
 
bool span_eq (const Span *s1, const Span *s2)
 Return true if the first span is equal to the second one. More...
 
void span_expand (const Span *s1, Span *s2)
 Expand the second span with the first one. More...
 
Spanspan_extent_transfn (Span *s1, const Span *s2)
 Transition function for extent aggregate of span values. More...
 
Spanspan_from_hexwkb (const char *hexwkb)
 Return a span from its WKB representation in hex-encoded ASCII. More...
 
Spanspan_from_wkb (const uint8_t *wkb, int size)
 Return a span from its Well-Known Binary (WKB) representation. More...
 
bool span_ge (const Span *s1, const Span *s2)
 Return true if the first span is greater than or equal to the second one. More...
 
bool span_gt (const Span *s1, const Span *s2)
 Return true if the first span is greater than the second one. More...
 
uint32 span_hash (const Span *s)
 Return the 32-bit hash of a span. More...
 
uint64 span_hash_extended (const Span *s, Datum seed)
 Return the 64-bit hash of a span using a seed. More...
 
bool span_le (const Span *s1, const Span *s2)
 Return true if the first span is less than or equal to the second one. More...
 
bool span_lower_inc (const Span *s)
 Return true if the lower bound of a span is inclusive. More...
 
bool span_lt (const Span *s1, const Span *s2)
 Return true if the first span is less than the second one. More...
 
bool span_ne (const Span *s1, const Span *s2)
 Return true if the first span is different from the second one. More...
 
char * span_out (const Span *s, int maxdd)
 Return the Well-Known Text (WKT) representation of a span. More...
 
TBoxspan_period_to_tbox (const Span *span, const Span *p)
 Return a temporal box from a span and a period. More...
 
TBoxspan_timestamp_to_tbox (const Span *span, TimestampTz t)
 Return a temporal box from a span and a timestamp. More...
 
SpanSetspan_to_spanset (const Span *s)
 Cast a period as a period set. More...
 
TBoxspan_to_tbox (const Span *span)
 
bool span_upper_inc (const Span *s)
 Return true if the upper bound of a span is inclusive. More...
 
double span_width (const Span *s)
 Return the width of a span as a double. More...
 
uint8_t * spanset_as_wkb (const SpanSet *ss, uint8_t variant, size_t *size_out)
 Return the WKB representation of a period set. More...
 
int spanset_cmp (const SpanSet *ss1, const SpanSet *ss2)
 Return -1, 0, or 1 depending on whether the first span set is less than, equal, or greater than the second one. More...
 
SpanSetspanset_copy (const SpanSet *ps)
 Return a copy of a span set. More...
 
Spanspanset_end_span (const SpanSet *ss)
 Return the end span of a span set. More...
 
bool spanset_eq (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is equal to the second one. More...
 
Spanspanset_extent_transfn (Span *s, const SpanSet *ss)
 Transition function for extent aggregate of span set values. More...
 
SpanSetspanset_from_hexwkb (const char *hexwkb)
 Return a period set from its WKB representation in hex-encoded ASCII. More...
 
SpanSetspanset_from_wkb (const uint8_t *wkb, int size)
 Return a period set from its Well-Known Binary (WKB) representation. More...
 
bool spanset_ge (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is greater than or equal to the second one. More...
 
bool spanset_gt (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is greater than the second one. More...
 
uint32 spanset_hash (const SpanSet *ps)
 Return the 32-bit hash value of a span set. More...
 
uint64 spanset_hash_extended (const SpanSet *ps, uint64 seed)
 Return the 64-bit hash value of a span set using a seed. More...
 
bool spanset_le (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is less than or equal to the second one. More...
 
bool spanset_lower_inc (const SpanSet *ss)
 Return true if the lower bound of a span set is inclusive. More...
 
bool spanset_lt (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is less than the second one. More...
 
SpanSetspanset_make (const Span **spans, int count, bool normalize)
 Construct a span set from an array of disjoint span. More...
 
SpanSetspanset_make_free (Span **spans, int count, bool normalize)
 Construct a span set from an array of spans and free the array and the spans after the creation. More...
 
int spanset_mem_size (const SpanSet *ss)
 Return the size in bytes of a period set. More...
 
bool spanset_ne (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is different from the second one. More...
 
int spanset_num_spans (const SpanSet *ss)
 Return the number of spans of a span set. More...
 
char * spanset_out (const SpanSet *ss, int maxdd)
 Return the Well-Known Text (WKT) representation of a span set. More...
 
Spanspanset_span_n (const SpanSet *ss, int i)
 Return the n-th span of a span set. More...
 
const Span ** spanset_spans (const SpanSet *ss, int *count)
 Return the spans of a span set. More...
 
Spanspanset_start_span (const SpanSet *ss)
 Return the start span of a span set. More...
 
bool spanset_upper_inc (const SpanSet *ss)
 Return true if the upper bound of a span set is inclusive. More...
 
double spanset_width (const SpanSet *ss)
 Return the width of a span set as a double. More...
 
void spatialset_set_stbox (const Set *set, STBox *box)
 Set the last argument to the bounding box of a spatial set. More...
 
STBoxspatialset_to_stbox (const Set *s)
 Return the bounding box of a spatial set. More...
 
char * stbox_as_hexwkb (const STBox *box, uint8_t variant, size_t *size)
 Return the WKB representation of a spatiotemporal box in hex-encoded ASCII. More...
 
uint8_t * stbox_as_wkb (const STBox *box, uint8_t variant, size_t *size_out)
 Return the WKB representation of a spatiotemporal box. More...
 
int stbox_cmp (const STBox *box1, const STBox *box2)
 Return -1, 0, or 1 depending on whether the first spatiotemporal box is less than, equal, or greater than the second one. More...
 
STBoxstbox_copy (const STBox *box)
 Return a copy of a spatiotemporal box. More...
 
bool stbox_eq (const STBox *box1, const STBox *box2)
 Return true if the spatiotemporal boxes are equal. More...
 
void stbox_expand (const STBox *box1, STBox *box2)
 Expand the second spatiotemporal box with the first one. More...
 
STBoxstbox_expand_space (const STBox *box, double d)
 Return a spatiotemporal box expanded in the spatial dimension by a double. More...
 
STBoxstbox_expand_time (const STBox *box, const Interval *interval)
 Return a spatiotemporal box expanded in the temporal dimension by an interval. More...
 
STBoxstbox_from_hexwkb (const char *hexwkb)
 Return a spatiotemporal box from its WKB representation in hex-encoded ASCII. More...
 
STBoxstbox_from_wkb (const uint8_t *wkb, int size)
 Return a spatiotemporal box from its Well-Known Binary (WKB) representation. More...
 
bool stbox_ge (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is greater than or equal to the second one. More...
 
bool stbox_gt (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is greater than the second one. More...
 
bool stbox_hast (const STBox *box)
 Return true if a spatiotemporal box has time dimension. More...
 
bool stbox_hasx (const STBox *box)
 Return true if a spatiotemporal box has value dimension. More...
 
bool stbox_hasz (const STBox *box)
 Return true if a spatiotemporal box has Z dimension. More...
 
STBoxstbox_in (const char *str)
 Return a spatiotemporal box from its Well-Known Text (WKT) representation. More...
 
bool stbox_isgeodetic (const STBox *box)
 Return true if a spatiotemporal box is geodetic. More...
 
bool stbox_le (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is less than or equal to the second one. More...
 
bool stbox_lt (const STBox *box1, const STBox *box2)
 Return true if the first spatiotemporal box is less than the second one. More...
 
STBoxstbox_make (bool hasx, bool hasz, bool geodetic, int32 srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const Span *p)
 Construct a spatiotemporal box from the arguments. More...
 
bool stbox_ne (const STBox *box1, const STBox *box2)
 Return true if the spatiotemporal boxes are different. More...
 
char * stbox_out (const STBox *box, int maxdd)
 Return the Well-Known Text (WKT) representation of a spatiotemporal box. More...
 
void stbox_set (bool hasx, bool hasz, bool geodetic, int32 srid, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const Span *p, STBox *box)
 Set a spatiotemporal box from the arguments. More...
 
STBoxstbox_set_srid (const STBox *box, int32 srid)
 Set the SRID of a spatiotemporal box. More...
 
void stbox_shift_tscale (STBox *box, const Interval *start, const Interval *duration)
 Shift and/or scale a spatiotemporal box by the intervals. More...
 
int32 stbox_srid (const STBox *box)
 Return the SRID of a spatiotemporal box. More...
 
STBoxstbox_tile_list (STBox *bounds, double size, const Interval *duration, GSERIALIZED *sorigin, TimestampTz torigin, int **cellcount)
 Generate a multidimensional grid for temporal points. More...
 
bool stbox_tmax (const STBox *box, TimestampTz *result)
 Return true if the spatiotemporal box has time dimension. More...
 
bool stbox_tmin (const STBox *box, TimestampTz *result)
 Return true if the spatiotemporal box has time dimension. More...
 
GSERIALIZEDstbox_to_geo (const STBox *box)
 Cast a spatiotemporal box as a PostGIS geometry. More...
 
Spanstbox_to_period (const STBox *box)
 Cast a temporal box as a period. More...
 
bool stbox_xmax (const STBox *box, double *result)
 Return true if the spatiotemporal box has value dimension. More...
 
bool stbox_xmin (const STBox *box, double *result)
 Return true if the spatiotemporal box has value dimension. More...
 
bool stbox_ymax (const STBox *box, double *result)
 Return true if the spatiotemporal box has value dimension. More...
 
bool stbox_ymin (const STBox *box, double *result)
 Return true if the spatiotemporal box has value dimension. More...
 
bool stbox_zmax (const STBox *box, double *result)
 Return true if the spatiotemporal box has Z dimension. More...
 
bool stbox_zmin (const STBox *box, double *result)
 Return true if the spatiotemporal box has Z dimension. More...
 
Temporalsub_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal subtraction of a float and a temporal float. More...
 
Temporalsub_int_tint (int i, const Temporal *tnumber)
 Return the temporal subtraction of an integer and a temporal integer. More...
 
Temporalsub_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal subtraction of a temporal float and a float. More...
 
Temporalsub_tint_int (const Temporal *tnumber, int i)
 Return the temporal subtraction of a temporal integer and an integer. More...
 
Temporalsub_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal subtraction of the temporal numbers. More...
 
Temporaltand_bool_tbool (bool b, const Temporal *temp)
 Temporal Boolean operators: and, or, not. More...
 
Temporaltand_tbool_bool (const Temporal *temp, bool b)
 Return the boolean and of a temporal boolean and a boolean. More...
 
Temporaltand_tbool_tbool (const Temporal *temp1, const Temporal *temp2)
 Return the boolean and of the temporal booleans. More...
 
bool tbool_always_eq (const Temporal *temp, bool b)
 Return true if a temporal boolean is always equal to a boolean. More...
 
Temporaltbool_at_value (const Temporal *temp, bool b)
 Basic functions for temporal types of any subtype. More...
 
bool tbool_end_value (const Temporal *temp)
 Return the end value of a temporal boolean. More...
 
bool tbool_ever_eq (const Temporal *temp, bool b)
 Return true if a temporal boolean is ever equal to a boolean. More...
 
Temporaltbool_from_base (bool b, const Temporal *temp)
 Construct a temporal boolean from a boolean and the time frame of another temporal value. More...
 
Temporaltbool_in (const char *str)
 Return a temporal boolean from its Well-Known Text (WKT) representation. More...
 
Temporaltbool_minus_value (const Temporal *temp, bool b)
 Restrict a temporal boolean to the complement of a boolean. More...
 
char * tbool_out (const Temporal *temp)
 Return a temporal boolean from its Well-Known Text (WKT) representation. More...
 
bool tbool_start_value (const Temporal *temp)
 Return the start value of a temporal boolean. More...
 
SkipListtbool_tand_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal and of temporal booleans. More...
 
SkipListtbool_tor_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count of temporal booleans. More...
 
bool tbool_value_at_timestamp (const Temporal *temp, TimestampTz t, bool strict, bool *value)
 Return the value of a temporal boolean at a timestamp. More...
 
bool * tbool_values (const Temporal *temp, int *count)
 Return the the array of base values of a temporal boolean. More...
 
SpanSettbool_when_true (const Temporal *temp)
 Return the time when the temporal boolean has value true. More...
 
TSequencetbooldiscseq_from_base_time (bool b, const Set *ts)
 Construct a temporal boolean discrete sequence from a boolean and a timestamp set. More...
 
TInstanttboolinst_make (bool b, TimestampTz t)
 Construct a temporal instant boolean from the arguments. More...
 
TSequencetboolseq_from_base (bool b, const TSequence *seq)
 Construct a temporal boolean sequence from a boolean and the time frame of another temporal sequence. More...
 
TSequencetboolseq_from_base_time (bool b, const Span *p)
 Construct a temporal boolean sequence from a boolean and a period. More...
 
TSequenceSettboolseqset_from_base (bool b, const TSequenceSet *ss)
 Construct a temporal boolean sequence set from a boolean and the time frame of another temporal sequence set. More...
 
TSequenceSettboolseqset_from_base_time (bool b, const SpanSet *ps)
 Construct a temporal boolean sequence set from a boolean and a period set. More...
 
char * tbox_as_hexwkb (const TBox *box, uint8_t variant, size_t *size)
 Return the WKB representation of a temporal box in hex-encoded ASCII. More...
 
uint8_t * tbox_as_wkb (const TBox *box, uint8_t variant, size_t *size_out)
 Return the WKB representation of a temporal box. More...
 
int tbox_cmp (const TBox *box1, const TBox *box2)
 Return -1, 0, or 1 depending on whether the first temporal box is less than, equal to, or greater than the second one. More...
 
TBoxtbox_copy (const TBox *box)
 Return a copy of a temporal box. More...
 
bool tbox_eq (const TBox *box1, const TBox *box2)
 Return true if the temporal boxes are equal. More...
 
void tbox_expand (const TBox *box1, TBox *box2)
 Expand the second temporal box with the first one. More...
 
TBoxtbox_expand_time (const TBox *box, const Interval *interval)
 Return a temporal box expanded in the time dimension by an interval. More...
 
TBoxtbox_expand_value (const TBox *box, const double d)
 Return a temporal box expanded in the value dimension by a double. More...
 
TBoxtbox_from_hexwkb (const char *hexwkb)
 Return a temporal box from its WKB representation in hex-encoded ASCII. More...
 
TBoxtbox_from_wkb (const uint8_t *wkb, int size)
 Return a temporal box from its Well-Known Binary (WKB) representation. More...
 
bool tbox_ge (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is greater than or equal to the second one. More...
 
bool tbox_gt (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is greater than the second one. More...
 
bool tbox_hast (const TBox *box)
 Return true if a temporal box has time dimension. More...
 
bool tbox_hasx (const TBox *box)
 Return true if a temporal box has value dimension. More...
 
TBoxtbox_in (const char *str)
 Return a temporal box from its Well-Known Text (WKT) representation. More...
 
bool tbox_le (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is less than or equal to the second one. More...
 
bool tbox_lt (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is less than the second one. More...
 
TBoxtbox_make (const Span *p, const Span *s)
 Construct a temporal box from the arguments. More...
 
bool tbox_ne (const TBox *box1, const TBox *box2)
 Return true if the temporal boxes are different. More...
 
char * tbox_out (const TBox *box, int maxdd)
 Return the Well-Known Text (WKT) representation of a temporal box. More...
 
void tbox_set (const Span *p, const Span *s, TBox *box)
 Set a temporal box from the arguments. More...
 
void tbox_shift_tscale (TBox *box, const Interval *start, const Interval *duration)
 Return a temporal box shifted and/or scaled in the time dimension by the intervals. More...
 
TBoxtbox_tile_list (const TBox *bounds, double xsize, const Interval *duration, double xorigin, TimestampTz torigin, int *rows, int *columns)
 Return the tile list from a TBox. More...
 
bool tbox_tmax (const TBox *box, TimestampTz *result)
 Return true if the temporal box has time dimension. More...
 
bool tbox_tmin (const TBox *box, TimestampTz *result)
 Return true if the temporal box has time dimension. More...
 
Spantbox_to_floatspan (const TBox *box)
 Cast a temporal box as a span. More...
 
Spantbox_to_period (const TBox *box)
 Cast a temporal box as a period. More...
 
bool tbox_xmax (const TBox *box, double *result)
 Return true if the temporal box has value dimension. More...
 
bool tbox_xmin (const TBox *box, double *result)
 Return true if the temporal box has value dimension. More...
 
Temporaltcontains_geo_tpoint (const GSERIALIZED *gs, const Temporal *temp, bool restr, bool atvalue)
 Return the temporal contains relationship between a geometry and a temporal point. More...
 
Temporaltdisjoint_tpoint_geo (const Temporal *temp, const GSERIALIZED *geo, bool restr, bool atvalue)
 Temporal spatial relationships for temporal points. More...
 
Temporaltdwithin_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs, double dist, bool restr, bool atvalue)
 Return a temporal Boolean that states whether a temporal point and a geometry are within the given distance. More...
 
Temporaltdwithin_tpoint_tpoint (const Temporal *temp1, const Temporal *temp2, double dist, bool restr, bool atvalue)
 Return a temporal Boolean that states whether the temporal points are within the given distance. More...
 
Temporaltemporal_append_tinstant (Temporal *temp, const TInstant *inst, bool expand)
 Append an instant to the end of a temporal value. More...
 
Temporaltemporal_append_tsequence (Temporal *temp, const TSequence *seq, bool expand)
 Append a sequence at the end of a temporal value. More...
 
char * temporal_as_hexwkb (const Temporal *temp, uint8_t variant, size_t *size_out)
 Return the WKB representation of a temporal value in hex-encoded ASCII. More...
 
char * temporal_as_mfjson (const Temporal *temp, bool with_bbox, int flags, int precision, char *srs)
 Return the MF-JSON representation of a temporal value. More...
 
uint8_t * temporal_as_wkb (const Temporal *temp, uint8_t variant, size_t *size_out)
 Return the WKB representation of a temporal value. More...
 
Temporaltemporal_at_max (const Temporal *temp)
 Restrict a temporal value to its maximum base value. More...
 
Temporaltemporal_at_min (const Temporal *temp)
 Restrict a temporal value to its minimum base value. More...
 
Temporaltemporal_at_period (const Temporal *temp, const Span *p)
 Restrict a temporal value to a period. More...
 
Temporaltemporal_at_periodset (const Temporal *temp, const SpanSet *ps)
 Restrict a temporal value to a period set. More...
 
Temporaltemporal_at_timestamp (const Temporal *temp, TimestampTz t)
 Restrict a temporal value to a timestamp. More...
 
Temporaltemporal_at_timestampset (const Temporal *temp, const Set *ts)
 Restrict a temporal value to a timestamp set. More...
 
int temporal_cmp (const Temporal *temp1, const Temporal *temp2)
 Return -1, 0, or 1 depending on whether the first temporal value is less than, equal, or greater than the second one. More...
 
Temporaltemporal_copy (const Temporal *temp)
 Return a copy of a temporal value. More...
 
Temporaltemporal_delete_period (const Temporal *temp, const Span *p, bool connect)
 Delete a period from a temporal value connecting the instants before and after the given timestamp (if any). More...
 
Temporaltemporal_delete_periodset (const Temporal *temp, const SpanSet *ps, bool connect)
 Delete a period set from a temporal value connecting the instants before and after the given timestamp (if any). More...
 
Temporaltemporal_delete_timestamp (const Temporal *temp, TimestampTz t, bool connect)
 Delete a timestamp from a temporal value connecting the instants before and after the given timestamp (if any). More...
 
Temporaltemporal_delete_timestampset (const Temporal *temp, const Set *ts, bool connect)
 Delete a timestamp set from a temporal value connecting the instants before and after the given timestamp (if any). More...
 
Intervaltemporal_duration (const Temporal *temp, bool boundspan)
 Return the duration of a temporal value. More...
 
double temporal_dyntimewarp_distance (const Temporal *temp1, const Temporal *temp2)
 Compute the Dynamic Time Warp distance between two temporal values. More...
 
Matchtemporal_dyntimewarp_path (const Temporal *temp1, const Temporal *temp2, int *count)
 Compute the Dynamic Time Warp distance between two temporal values. More...
 
const TInstanttemporal_end_instant (const Temporal *temp)
 Return the end instant of a temporal value. More...
 
TSequencetemporal_end_sequence (const Temporal *temp)
 Return the end sequence of a temporal sequence (set). More...
 
TimestampTz temporal_end_timestamp (const Temporal *temp)
 Return the end timestamp of a temporal value. More...
 
bool temporal_eq (const Temporal *temp1, const Temporal *temp2)
 Return true if the temporal values are equal. More...
 
Spantemporal_extent_transfn (Span *p, const Temporal *temp)
 Transition function for temporal extent aggregate of temporal values. More...
 
double temporal_frechet_distance (const Temporal *temp1, const Temporal *temp2)
 Compute the Frechet distance between two temporal values. More...
 
Matchtemporal_frechet_path (const Temporal *temp1, const Temporal *temp2, int *count)
 Compute the Frechet distance between two temporal values. More...
 
Temporaltemporal_from_hexwkb (const char *hexwkb)
 Return a temporal value from its HexEWKB representation. More...
 
Temporaltemporal_from_mfjson (const char *mfjson)
 Return a temporal point from its MF-JSON representation. More...
 
Temporaltemporal_from_wkb (const uint8_t *wkb, int size)
 Return a temporal value from its Well-Known Binary (WKB) representation. More...
 
bool temporal_ge (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is greater than or equal to the second one. More...
 
bool temporal_gt (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is greater than the second one. More...
 
uint32 temporal_hash (const Temporal *temp)
 Return the 32-bit hash value of a temporal value. More...
 
Temporaltemporal_insert (const Temporal *temp1, const Temporal *temp2, bool connect)
 Insert the second temporal value into the first one. More...
 
const TInstanttemporal_instant_n (const Temporal *temp, int n)
 Return the n-th instant of a temporal value. More...
 
const TInstant ** temporal_instants (const Temporal *temp, int *count)
 Return the array of instants of a temporal value. More...
 
char * temporal_interpolation (const Temporal *temp)
 Return the string representation of the interpolation of a temporal value. More...
 
bool temporal_le (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is less than or equal to the second one. More...
 
bool temporal_lt (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is less than the second one. More...
 
const TInstanttemporal_max_instant (const Temporal *temp)
 Return a pointer to the instant with maximum base value of a temporal value. More...
 
size_t temporal_memory_size (const Temporal *temp)
 
Temporaltemporal_merge (const Temporal *temp1, const Temporal *temp2)
 Merge two temporal values. More...
 
Temporaltemporal_merge_array (Temporal **temparr, int count)
 Merge an array of temporal values. More...
 
const TInstanttemporal_min_instant (const Temporal *temp)
 Return a pointer to the instant with minimum base value of a temporal value. More...
 
Temporaltemporal_minus_max (const Temporal *temp)
 Restrict a temporal value to the complement of its maximum base value. More...
 
Temporaltemporal_minus_min (const Temporal *temp)
 Restrict a temporal value to the complement of its minimum base value. More...
 
Temporaltemporal_minus_period (const Temporal *temp, const Span *p)
 Restrict a temporal value to the complement of a period. More...
 
Temporaltemporal_minus_periodset (const Temporal *temp, const SpanSet *ps)
 Restrict a temporal value to the complement of a period set. More...
 
Temporaltemporal_minus_timestamp (const Temporal *temp, TimestampTz t)
 Restrict a temporal value to the complement of a timestamp. More...
 
Temporaltemporal_minus_timestampset (const Temporal *temp, const Set *ts)
 Restrict a temporal value to the complement of a timestamp set. More...
 
bool temporal_ne (const Temporal *temp1, const Temporal *temp2)
 Return true if the temporal values are different. More...
 
int temporal_num_instants (const Temporal *temp)
 Return the number of distinct instants of a temporal value. More...
 
int temporal_num_sequences (const Temporal *temp)
 Return the number of sequences of a temporal sequence (set). More...
 
int temporal_num_timestamps (const Temporal *temp)
 Return the number of distinct timestamps of a temporal value. More...
 
TSequence ** temporal_segments (const Temporal *temp, int *count)
 Return the array of segments of a temporal value. More...
 
TSequencetemporal_sequence_n (const Temporal *temp, int i)
 Return the n-th sequence of a temporal sequence (set). More...
 
TSequence ** temporal_sequences (const Temporal *temp, int *count)
 Return the array of sequences of a temporal sequence (set). More...
 
Temporaltemporal_shift (const Temporal *temp, const Interval *shift)
 
Temporaltemporal_shift_tscale (const Temporal *temp, const Interval *shift, const Interval *duration)
 Return a temporal value shifted and/or scaled by the intervals. More...
 
Temporaltemporal_simplify (const Temporal *temp, double eps_dist, bool synchronized)
 Simplify the temporal float/point using a spatio-temporal extension of the Douglas-Peucker line simplification algorithm. More...
 
const TInstanttemporal_start_instant (const Temporal *temp)
 Return the start instant of a temporal value. More...
 
TSequencetemporal_start_sequence (const Temporal *temp)
 Return the start sequence of a temporal sequence (set). More...
 
TimestampTz temporal_start_timestamp (const Temporal *temp)
 Return the start timestamp of a temporal value. More...
 
Temporaltemporal_step_to_linear (const Temporal *temp)
 Return a temporal value with continuous base type transformed from step to linear interpolation. More...
 
char * temporal_subtype (const Temporal *temp)
 Return the string representation of the subtype of a temporal value. More...
 
Temporaltemporal_tagg_finalfn (SkipList *state)
 Generic final function for aggregating temporal values. More...
 
SkipListtemporal_tcount_transfn (SkipList *state, const Temporal *temp)
 Generic transition function for temporal aggregation. More...
 
SpanSettemporal_time (const Temporal *temp)
 Return the time frame of a temporal value as a period set. More...
 
Temporal ** temporal_time_split (Temporal *temp, Interval *duration, TimestampTz torigin, int *newcount)
 Split a temporal value into fragments with respect to period buckets. More...
 
bool temporal_timestamp_n (const Temporal *temp, int n, TimestampTz *result)
 Return the n-th distinct timestamp of a temporal value. More...
 
TimestampTztemporal_timestamps (const Temporal *temp, int *count)
 Return the array of distinct timestamps of a temporal value. More...
 
Spantemporal_to_period (const Temporal *temp)
 Return the bounding period of a temporal value. More...
 
Temporaltemporal_to_tcontseq (const Temporal *temp)
 Return a temporal value transformed into a temporal sequence with continuous interpolation. More...
 
Temporaltemporal_to_tdiscseq (const Temporal *temp)
 Return a temporal value transformed into a temporal sequence with discrete interpolation. More...
 
Temporaltemporal_to_tinstant (const Temporal *temp)
 Return a temporal value transformed into a temporal instant. More...
 
Temporaltemporal_to_tsequenceset (const Temporal *temp)
 Return a temporal value transformed into a temporal sequence set. More...
 
Temporaltemporal_tprecision (const Temporal *temp, const Interval *duration, TimestampTz origin)
 Set the precision of a temporal value according to period buckets. More...
 
Temporaltemporal_tsample (const Temporal *temp, const Interval *duration, TimestampTz origin)
 Sample the temporal value according to period buckets. More...
 
Temporaltemporal_tscale (const Temporal *temp, const Interval *duration)
 
Temporaltemporal_update (const Temporal *temp1, const Temporal *temp2, bool connect)
 Update the first temporal value with the second one. More...
 
Temporalteq_bool_tbool (bool b, const Temporal *temp)
 Temporal comparison operators: #=, #<>, #<, #>, #<=, #>=. More...
 
Temporalteq_float_tfloat (double d, const Temporal *temp)
 Return the temporal equality of a float and a temporal float. More...
 
Temporalteq_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 General functions for temporal points. More...
 
Temporalteq_int_tint (int i, const Temporal *temp)
 Return the temporal equality of an integer and a temporal integer. More...
 
Temporalteq_point_tgeogpoint (const GSERIALIZED *gs, const Temporal *temp)
 Return the temporal equality of a point and a temporal geographic point. More...
 
Temporalteq_point_tgeompoint (const GSERIALIZED *gs, const Temporal *temp)
 Return the temporal equality of a point and a temporal geometric point. More...
 
Temporalteq_tbool_bool (const Temporal *temp, bool b)
 Return the temporal equality of a temporal boolean and a boolean. More...
 
Temporalteq_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal equality of the temporal values. More...
 
Temporalteq_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal equality of a text and a temporal text. More...
 
Temporalteq_tfloat_float (const Temporal *temp, double d)
 Return the temporal equality of a temporal float and a float. More...
 
Temporalteq_tgeogpoint_point (const Temporal *temp, const GSERIALIZED *gs)
 Return the temporal equality of a temporal geographic point and a point. More...
 
Temporalteq_tgeompoint_point (const Temporal *temp, const GSERIALIZED *gs)
 Return the temporal equality of a temporal geometric point and a point. More...
 
Temporalteq_tint_int (const Temporal *temp, int i)
 Return the temporal equality of a temporal integer and an integer. More...
 
Temporalteq_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 Return the temporal equality of a temporal point and a point. More...
 
Temporalteq_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal equality of a temporal text and a text. More...
 
char * text2cstring (const text *textptr)
 Convert a text value into a C string. More...
 
Temporaltextcat_text_ttext (const text *txt, const Temporal *temp)
 Temporal text functions: textcat, lower, upper. More...
 
Temporaltextcat_ttext_text (const Temporal *temp, const text *txt)
 Return the concatenation of a temporal text and a text. More...
 
Temporaltextcat_ttext_ttext (const Temporal *temp1, const Temporal *temp2)
 Return the concatenation of two temporal text values. More...
 
Settextset_agg_transfn (Set *state, const text *txt)
 Transition function for set aggregate of values. More...
 
bool tfloat_always_eq (const Temporal *temp, double d)
 Return true if a temporal float is always equal to a float. More...
 
bool tfloat_always_le (const Temporal *temp, double d)
 Return true if a temporal float is always less than or equal to a float. More...
 
bool tfloat_always_lt (const Temporal *temp, double d)
 Return true if a temporal float is always less than a float. More...
 
Temporaltfloat_at_value (const Temporal *temp, double d)
 Restrict a temporal float to a float. More...
 
Temporaltfloat_at_values (const Temporal *temp, const Set *set)
 
Temporaltfloat_degrees (const Temporal *temp)
 Convert a temporal number from radians to degrees. More...
 
Temporaltfloat_derivative (const Temporal *temp)
 Return the derivative of a temporal number. More...
 
double tfloat_end_value (const Temporal *temp)
 Return the end value of a temporal float. More...
 
bool tfloat_ever_eq (const Temporal *temp, double d)
 Return true if a temporal float is ever equal to a float. More...
 
bool tfloat_ever_le (const Temporal *temp, double d)
 Return true if a temporal float is ever less than or equal to a float. More...
 
bool tfloat_ever_lt (const Temporal *temp, double d)
 Return true if a temporal float is ever less than a float. More...
 
Temporaltfloat_from_base (double d, const Temporal *temp, interpType interp)
 Construct a temporal float from a float and the time frame of another temporal value. More...
 
Temporaltfloat_in (const char *str)
 Return a temporal float from its Well-Known Text (WKT) representation. More...
 
double tfloat_max_value (const Temporal *temp)
 Return the maximum value of a temporal float. More...
 
double tfloat_min_value (const Temporal *temp)
 Return the minimum value of a temporal float. More...
 
Temporaltfloat_minus_value (const Temporal *temp, double d)
 Restrict a temporal float to the complement of a float. More...
 
Temporaltfloat_minus_values (const Temporal *temp, const Set *set)
 
char * tfloat_out (const Temporal *temp, int maxdd)
 Return a temporal float from its Well-Known Text (WKT) representation. More...
 
Temporaltfloat_radians (const Temporal *temp)
 Convert a temporal number from degrees to radians. More...
 
SpanSettfloat_spanset (const Temporal *temp)
 Return the base values of a temporal float as an array of spans. More...
 
double tfloat_start_value (const Temporal *temp)
 Return the start value of a temporal float. More...
 
SkipListtfloat_tmax_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count of temporal values. More...
 
SkipListtfloat_tmin_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count of temporal values. More...
 
Temporaltfloat_to_tint (const Temporal *temp)
 Cast a temporal float to a temporal integer. More...
 
SkipListtfloat_tsum_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count of temporal values. More...
 
bool tfloat_value_at_timestamp (const Temporal *temp, TimestampTz t, bool strict, double *value)
 Return the value of a temporal integer at a timestamp. More...
 
Temporal ** tfloat_value_split (Temporal *temp, double size, double origin, int *newcount)
 Split a temporal float into fragments with respect to value buckets. More...
 
Temporal ** tfloat_value_time_split (Temporal *temp, double size, double vorigin, Interval *duration, TimestampTz torigin, int *newcount)
 Split a temporal integer into fragments with respect to value and period buckets. More...
 
double * tfloat_values (const Temporal *temp, int *count)
 Return the the array of base values of a temporal float. More...
 
TSequencetfloatdiscseq_from_base_time (double d, const Set *ts)
 Construct a temporal float discrete sequence from a float and a timestamp set. More...
 
TInstanttfloatinst_make (double d, TimestampTz t)
 Construct a temporal instant float from the arguments. More...
 
TSequencetfloatseq_from_base (double d, const TSequence *seq, interpType interp)
 Construct a temporal float sequence from a float and the time frame of another temporal sequence. More...
 
TSequencetfloatseq_from_base_time (double d, const Span *p, interpType interp)
 Construct a temporal float sequence from a float and a period. More...
 
TSequenceSettfloatseqset_from_base (double d, const TSequenceSet *ss, interpType interp)
 Construct a temporal float sequence set from a float and the time frame of another temporal sequence set. More...
 
TSequenceSettfloatseqset_from_base_time (double d, const SpanSet *ps, interpType interp)
 Construct a temporal float sequence set from a float and a period set. More...
 
Temporaltge_float_tfloat (double d, const Temporal *temp)
 Return the temporal greater than or equal to of a float and a temporal float. More...
 
Temporaltge_int_tint (int i, const Temporal *temp)
 Return the temporal greater than or equal to of an integer and a temporal integer. More...
 
Temporaltge_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal greater than or equal of the temporal values. More...
 
Temporaltge_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal greater than or equal to of a text and a temporal text. More...
 
Temporaltge_tfloat_float (const Temporal *temp, double d)
 Return the temporal greater than or equal to of a temporal float and a float. More...
 
Temporaltge_tint_int (const Temporal *temp, int i)
 Return the temporal greater than or equal to of a temporal integer and an integer. More...
 
Temporaltge_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal greater than or equal to of a temporal text and a text. More...
 
bool tgeogpoint_always_eq (const Temporal *temp, GSERIALIZED *gs)
 Return true if a temporal geographic point is always equal to a point. More...
 
bool tgeogpoint_ever_eq (const Temporal *temp, GSERIALIZED *gs)
 Return true if a temporal geographic point is ever equal to a point. More...
 
Temporaltgeogpoint_from_base (const GSERIALIZED *gs, const Temporal *temp, interpType interp)
 Construct a temporal geographic point from a point and the time frame of another temporal value. More...
 
Temporaltgeogpoint_in (const char *str)
 Return a temporal geographic point from its Well-Known Text (WKT) representation. More...
 
TSequencetgeogpointdiscseq_from_base_time (const GSERIALIZED *gs, const Set *ts)
 Construct a temporal geographic point discrete sequence from a point and a timestamp set. More...
 
TInstanttgeogpointinst_make (const GSERIALIZED *gs, TimestampTz t)
 Construct a temporal instant geographic point from the arguments. More...
 
TSequencetgeogpointseq_from_base (const GSERIALIZED *gs, const TSequence *seq, interpType interp)
 Construct a temporal geographic point sequence from a point and the time frame of another temporal sequence. More...
 
TSequencetgeogpointseq_from_base_time (const GSERIALIZED *gs, const Span *p, interpType interp)
 Construct a temporal geographic point sequence from a point and a period. More...
 
TSequenceSettgeogpointseqset_from_base (const GSERIALIZED *gs, const TSequenceSet *ss, interpType interp)
 Construct a temporal geographic point sequence set from a point and the time frame of another temporal sequence set. More...
 
TSequenceSettgeogpointseqset_from_base_time (const GSERIALIZED *gs, const SpanSet *ps, interpType interp)
 Construct a temporal geographic point sequence set from a point and a period set. More...
 
bool tgeompoint_always_eq (const Temporal *temp, GSERIALIZED *gs)
 Return true if a temporal geometric point is always equal to a point. More...
 
bool tgeompoint_ever_eq (const Temporal *temp, GSERIALIZED *gs)
 Return true if a temporal geometric point is ever equal to a point. More...
 
Temporaltgeompoint_from_base (const GSERIALIZED *gs, const Temporal *temp, interpType interp)
 Construct a temporal geometric point from a point and the time frame of another temporal value. More...
 
Temporaltgeompoint_in (const char *str)
 Return a temporal geometric point from its Well-Known Text (WKT) representation. More...
 
Temporaltgeompoint_tgeogpoint (const Temporal *temp, bool oper)
 Convert a temporal point to a geometry/geography point. More...
 
TSequencetgeompointdiscseq_from_base_time (const GSERIALIZED *gs, const Set *ts)
 Construct a temporal geometric point discrete sequence from a point and a timestamp set. More...
 
TInstanttgeompointinst_make (const GSERIALIZED *gs, TimestampTz t)
 Construct a temporal instant geometric point from the arguments. More...
 
TSequencetgeompointseq_from_base (const GSERIALIZED *gs, const TSequence *seq, interpType interp)
 Construct a temporal geometric point sequence from a point and the time frame of another temporal sequence. More...
 
TSequencetgeompointseq_from_base_time (const GSERIALIZED *gs, const Span *p, interpType interp)
 Construct a temporal geometric point sequence from a point and a period. More...
 
TSequenceSettgeompointseqset_from_base (const GSERIALIZED *gs, const TSequenceSet *ss, interpType interp)
 Construct a temporal geometric point sequence set from a point and the time frame of another temporal sequence set. More...
 
TSequenceSettgeompointseqset_from_base_time (const GSERIALIZED *gs, const SpanSet *ps, interpType interp)
 Construct a temporal geometric point sequence set from a point and a period set. More...
 
Temporaltgt_float_tfloat (double d, const Temporal *temp)
 Return the temporal greater than of a float and a temporal float. More...
 
Temporaltgt_int_tint (int i, const Temporal *temp)
 Return the temporal greater than of an integer and a temporal integer. More...
 
Temporaltgt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal greater than of the temporal values. More...
 
Temporaltgt_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal greater than of a text and a temporal text. More...
 
Temporaltgt_tfloat_float (const Temporal *temp, double d)
 Return the temporal greater than of a temporal float and a float. More...
 
Temporaltgt_tint_int (const Temporal *temp, int i)
 Return the temporal greater than of a temporal integer and an integer. More...
 
Temporaltgt_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal greater than of a temporal text and a text. More...
 
Spantimestamp_extent_transfn (Span *p, TimestampTz t)
 Transition function for extent aggregate of base types of spans. More...
 
SkipListtimestamp_tcount_transfn (SkipList *state, TimestampTz t)
 Transition function for temporal count aggregate of timestamps. More...
 
Spantimestamp_to_period (TimestampTz t)
 Cast a timestamp as a period. More...
 
SpanSettimestamp_to_periodset (TimestampTz t)
 Cast a timestamp as a period set. More...
 
STBoxtimestamp_to_stbox (TimestampTz t)
 Cast a timestamp to a spatiotemporal box. More...
 
TBoxtimestamp_to_tbox (TimestampTz t)
 Cast a timestamp to a temporal box. More...
 
Settimestamp_to_tstzset (TimestampTz t)
 Cast a value as a set. More...
 
TimestampTz timestamp_tprecision (TimestampTz t, const Interval *duration, TimestampTz torigin)
 Operators for span set types. More...
 
Settimestamp_tunion_finalfn (SkipList *state)
 Final function for union aggregation of timestamp set values. More...
 
SkipListtimestamp_tunion_transfn (SkipList *state, TimestampTz t)
 Transition function for tunion aggregate of timestamps. More...
 
TimestampTz timestamptz_bucket (TimestampTz timestamp, const Interval *duration, TimestampTz origin)
 Return the initial timestamp of the bucket in which a timestamp falls. More...
 
bool tint_always_eq (const Temporal *temp, int i)
 Return true if a temporal integer is always equal to an integer. More...
 
bool tint_always_le (const Temporal *temp, int i)
 Return true if a temporal integer is always less than or equal to an integer. More...
 
bool tint_always_lt (const Temporal *temp, int i)
 Return true if a temporal integer is always less than an integer. More...
 
Temporaltint_at_value (const Temporal *temp, int i)
 Restrict a temporal integer to an integer. More...
 
Temporaltint_at_values (const Temporal *temp, const Set *set)
 
int tint_end_value (const Temporal *temp)
 Return the end value of a temporal integer. More...
 
bool tint_ever_eq (const Temporal *temp, int i)
 Return true if a temporal integer is ever equal to an integer. More...
 
bool tint_ever_le (const Temporal *temp, int i)
 Return true if a temporal integer is ever less than or equal to an integer. More...
 
bool tint_ever_lt (const Temporal *temp, int i)
 Return true if a temporal integer is ever less than an integer. More...
 
Temporaltint_from_base (int i, const Temporal *temp)
 Construct a temporal integer from an integer and the time frame of another temporal value. More...
 
Temporaltint_in (const char *str)
 Return a temporal integer from its Well-Known Text (WKT) representation. More...
 
int tint_max_value (const Temporal *temp)
 Return the maximum value of a temporal integer. More...
 
int tint_min_value (const Temporal *temp)
 Return the minimum value of a temporal integer. More...
 
Temporaltint_minus_value (const Temporal *temp, int i)
 Restrict a temporal integer to the complement of an integer. More...
 
Temporaltint_minus_values (const Temporal *temp, const Set *set)
 
char * tint_out (const Temporal *temp)
 Return a temporal integer from its Well-Known Text (WKT) representation. More...
 
int tint_start_value (const Temporal *temp)
 Return the start value of a temporal integer. More...
 
SkipListtint_tmax_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count of temporal values. More...
 
SkipListtint_tmin_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count of temporal values. More...
 
Temporaltint_to_tfloat (const Temporal *temp)
 Cast a temporal integer to a temporal float. More...
 
SkipListtint_tsum_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count of temporal values. More...
 
bool tint_value_at_timestamp (const Temporal *temp, TimestampTz t, bool strict, int *value)
 Return the value of a temporal integer at a timestamp. More...
 
Temporal ** tint_value_split (Temporal *temp, int size, int origin, int *newcount)
 Split a temporal integer into fragments with respect to value buckets. More...
 
Temporal ** tint_value_time_split (Temporal *temp, int size, int vorigin, Interval *duration, TimestampTz torigin, int *newcount)
 Split a temporal integer into fragments with respect to value and period buckets. More...
 
int * tint_values (const Temporal *temp, int *count)
 Return the the array of base values of a temporal integer. More...
 
TSequencetintdiscseq_from_base_time (int i, const Set *ts)
 Construct a temporal integer discrete sequence from an integer and a timestamp set. More...
 
Temporaltintersects_tpoint_geo (const Temporal *temp, const GSERIALIZED *geo, bool restr, bool atvalue)
 Return the temporal intersects relationship between a temporal point and a geometry. More...
 
TInstanttintinst_make (int i, TimestampTz t)
 Construct a temporal instant integer from the arguments. More...
 
TSequencetintseq_from_base (int i, const TSequence *seq)
 Construct a temporal integer sequence from an integer and the time frame of another temporal sequence. More...
 
TSequencetintseq_from_base_time (int i, const Span *p)
 Construct a temporal integer sequence from an integer and a period. More...
 
TSequenceSettintseqset_from_base (int i, const TSequenceSet *ss)
 Construct a temporal integer sequence set from an integer and the time frame of another temporal sequence set. More...
 
TSequenceSettintseqset_from_base_time (int i, const SpanSet *ps)
 Construct a temporal integer sequence set from an integer and a period set. More...
 
Temporaltle_float_tfloat (double d, const Temporal *temp)
 Return the temporal less than or equal to of a float and a temporal float. More...
 
Temporaltle_int_tint (int i, const Temporal *temp)
 Return the temporal less than or equal to of an integer and a temporal integer. More...
 
Temporaltle_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal less than or equal to of the temporal values. More...
 
Temporaltle_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal less or equal to than of a text and a temporal text. More...
 
Temporaltle_tfloat_float (const Temporal *temp, double d)
 Return the temporal less than or equal to of a temporal float and a float. More...
 
Temporaltle_tint_int (const Temporal *temp, int i)
 Return the temporal less than or equal to of a temporal integer and an integer. More...
 
Temporaltle_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal less than or equal to of a temporal text and a text. More...
 
Temporaltlt_float_tfloat (double d, const Temporal *temp)
 Return the temporal less than of a float and a temporal float. More...
 
Temporaltlt_int_tint (int i, const Temporal *temp)
 Return the temporal less than of an integer and a temporal integer. More...
 
Temporaltlt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal less than of the temporal values. More...
 
Temporaltlt_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal less than of a text and a temporal text. More...
 
Temporaltlt_tfloat_float (const Temporal *temp, double d)
 Return the temporal less than of a temporal float and a float. More...
 
Temporaltlt_tint_int (const Temporal *temp, int i)
 Return the temporal less than of a temporal integer and an integer. More...
 
Temporaltlt_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal less than of a temporal text and a text. More...
 
Temporaltne_bool_tbool (bool b, const Temporal *temp)
 Return the temporal inequality of a boolean and a temporal boolean. More...
 
Temporaltne_float_tfloat (double d, const Temporal *temp)
 Return the temporal inequality of a float and a temporal float. More...
 
Temporaltne_geo_tpoint (const GSERIALIZED *geo, const Temporal *tpoint)
 Return the temporal difference of a point and a temporal point. More...
 
Temporaltne_int_tint (int i, const Temporal *temp)
 Return the temporal inequality of an integer and a temporal integer. More...
 
Temporaltne_point_tgeogpoint (const GSERIALIZED *gs, const Temporal *temp)
 Return the temporal inequality of a point and a temporal geographic point. More...
 
Temporaltne_point_tgeompoint (const GSERIALIZED *gs, const Temporal *temp)
 Return the temporal inequality of a point and a temporal geometric point. More...
 
Temporaltne_tbool_bool (const Temporal *temp, bool b)
 Return the temporal inequality of a temporal boolean and a boolean. More...
 
Temporaltne_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal inequality of the temporal values. More...
 
Temporaltne_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal inequality of a text and a temporal text. More...
 
Temporaltne_tfloat_float (const Temporal *temp, double d)
 Return the temporal inequality of a temporal float and a float. More...
 
Temporaltne_tgeogpoint_point (const Temporal *temp, const GSERIALIZED *gs)
 Return the temporal inequality of a temporal geographic point and a point. More...
 
Temporaltne_tgeompoint_point (const Temporal *temp, const GSERIALIZED *gs)
 Return the temporal inequality of a temporal geometric point and a point. More...
 
Temporaltne_tint_int (const Temporal *temp, int i)
 Return the temporal inequality of a temporal integer and an integer. More...
 
Temporaltne_tpoint_geo (const Temporal *tpoint, const GSERIALIZED *geo)
 Return the temporal difference of the temporal point and a point. More...
 
Temporaltne_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal inequality of a temporal text and a text. More...
 
Temporaltnot_tbool (const Temporal *temp)
 Return the boolean not of a temporal boolean. More...
 
Temporaltnumber_abs (const Temporal *temp)
 Get the absolute value of a temporal number. More...
 
Temporaltnumber_at_span (const Temporal *temp, const Span *span)
 Restrict a temporal value to a span of base values. More...
 
Temporaltnumber_at_spanset (const Temporal *temp, const SpanSet *ss)
 Restrict a temporal value to an array of spans of base values. More...
 
Temporaltnumber_at_tbox (const Temporal *temp, const TBox *box)
 Restrict a temporal number to a temporal box. More...
 
TBoxtnumber_extent_transfn (TBox *box, const Temporal *temp)
 Transition function for temporal extent aggregate of temporal numbers. More...
 
double tnumber_integral (const Temporal *temp)
 Return the integral (area under the curve) of a temporal number. More...
 
Temporaltnumber_minus_span (const Temporal *temp, const Span *span)
 Restrict a temporal value to the complement of a span of base values. More...
 
Temporaltnumber_minus_spanset (const Temporal *temp, const SpanSet *ss)
 Restrict a temporal value to the complement of an array of spans of base values. More...
 
Temporaltnumber_minus_tbox (const Temporal *temp, const TBox *box)
 Restrict a temporal number to the complement of a temporal box. More...
 
Temporaltnumber_tavg_finalfn (SkipList *state)
 Final function for temporal average aggregation. More...
 
SkipListtnumber_tavg_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal average of temporal numbers. More...
 
Spantnumber_to_span (const Temporal *temp)
 Return the value span of a temporal number. More...
 
TBoxtnumber_to_tbox (const Temporal *temp)
 Return the bounding box of a temporal number. More...
 
double tnumber_twavg (const Temporal *temp)
 Return the time-weighted average of a temporal number. More...
 
Temporaltor_bool_tbool (bool b, const Temporal *temp)
 Return the boolean or of a boolean and a temporal boolean. More...
 
Temporaltor_tbool_bool (const Temporal *temp, bool b)
 Return the boolean or of a temporal boolean and a boolean. More...
 
Temporaltor_tbool_tbool (const Temporal *temp1, const Temporal *temp2)
 Return the boolean or of the temporal booleans. More...
 
char * tpoint_as_ewkt (const Temporal *temp, int maxdd)
 Return the Extended Well-Known Text (EWKT) representation a temporal point. More...
 
char * tpoint_as_text (const Temporal *temp, int maxdd)
 Return the Well-Known Text (WKT) representation of a temporal point. More...
 
bool tpoint_AsMVTGeom (const Temporal *temp, const STBox *bounds, int32_t extent, int32_t buffer, bool clip_geom, GSERIALIZED **geom, int64 **timesarr, int *count)
 Transform the temporal point to Mapbox Vector Tile format. More...
 
Temporaltpoint_at_geometry (const Temporal *temp, const GSERIALIZED *gs)
 Restrict a temporal point to (the complement of) a geometry. More...
 
Temporaltpoint_at_stbox (const Temporal *temp, const STBox *box)
 Restrict a temporal point to a spatiotemporal box. More...
 
Temporaltpoint_at_value (const Temporal *temp, GSERIALIZED *gs)
 Restrict a temporal point to a point. More...
 
Temporaltpoint_at_values (const Temporal *temp, const Set *set)
 
Temporaltpoint_azimuth (const Temporal *temp)
 Return the temporal azimuth of a temporal geometry point. More...
 
Temporaltpoint_cumulative_length (const Temporal *temp)
 Return the cumulative length traversed by a temporal point. More...
 
GSERIALIZEDtpoint_end_value (const Temporal *temp)
 Return the end value of a temporal point. More...
 
STBoxtpoint_expand_space (const Temporal *temp, double d)
 Return the bounding box of a temporal point expanded on the spatial dimension. More...
 
STBoxtpoint_extent_transfn (STBox *box, const Temporal *temp)
 Transition function for temporal extent aggregation of temporal point values. More...
 
Temporaltpoint_get_coord (const Temporal *temp, int coord)
 Get one of the coordinates of a temporal point as a temporal float. More...
 
bool tpoint_is_simple (const Temporal *temp)
 Return true if a temporal point does not self-intersect. More...
 
double tpoint_length (const Temporal *temp)
 Return the length traversed by a temporal sequence (set) point. More...
 
Temporal ** tpoint_make_simple (const Temporal *temp, int *count)
 Split a temporal point into an array of non self-intersecting fragments. More...
 
Temporaltpoint_minus_geometry (const Temporal *temp, const GSERIALIZED *gs)
 Restrict a temporal point to (the complement of) a geometry. More...
 
Temporaltpoint_minus_stbox (const Temporal *temp, const STBox *box)
 Restrict a temporal point to the complement of a spatiotemporal box. More...
 
Temporaltpoint_minus_value (const Temporal *temp, GSERIALIZED *gs)
 Restrict a temporal point to the complement of a point. More...
 
Temporaltpoint_minus_values (const Temporal *temp, const Set *set)
 
char * tpoint_out (const Temporal *temp, int maxdd)
 Return a temporal geometric/geographic point from its Well-Known Text (WKT) representation. More...
 
Temporaltpoint_set_srid (const Temporal *temp, int32 srid)
 Set the SRID of a temporal point. More...
 
Temporaltpoint_speed (const Temporal *temp)
 Return the speed of a temporal point. More...
 
int tpoint_srid (const Temporal *temp)
 Return the SRID of a temporal point. More...
 
GSERIALIZEDtpoint_start_value (const Temporal *temp)
 Return the start value of a temporal geometric point. More...
 
STBoxtpoint_stboxes (const Temporal *temp, int *count)
 Return an array of spatiotemporal boxes from a temporal point. More...
 
bool tpoint_to_geo_measure (const Temporal *tpoint, const Temporal *measure, bool segmentize, GSERIALIZED **result)
 Construct a geometry/geography with M measure from the temporal point and. More...
 
STBoxtpoint_to_stbox (const Temporal *temp)
 Return the bounding box of a temporal point. More...
 
GSERIALIZEDtpoint_trajectory (const Temporal *temp)
 Return the trajectory of a temporal point. More...
 
GSERIALIZEDtpoint_twcentroid (const Temporal *temp)
 Return the time-weighed centroid of a temporal geometry point. More...
 
bool tpoint_value_at_timestamp (const Temporal *temp, TimestampTz t, bool strict, GSERIALIZED **value)
 Return the value of a temporal geometric point at a timestamp. More...
 
GSERIALIZED ** tpoint_values (const Temporal *temp, int *count)
 Return the the array of base values of a temporal geometric point. More...
 
TSequencetpointseq_make_coords (const double *xcoords, const double *ycoords, const double *zcoords, const TimestampTz *times, int count, int32 srid, bool geodetic, bool lower_inc, bool upper_inc, interpType interp, bool normalize)
 Construct a temporal sequence from arrays of coordinates, one per dimension, and timestamps. More...
 
TSequencetsequence_at_period (const TSequence *seq, const Span *p)
 Restrict a temporal sequence to a period. More...
 
TSequencetsequence_make (const TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp, bool normalize)
 Construct a temporal sequence from an array of temporal instants. More...
 
TSequencetsequence_make_exp (const TInstant **instants, int count, int maxcount, bool lower_inc, bool upper_inc, interpType interp, bool normalize)
 Construct a temporal sequence from an array of temporal instants. More...
 
TSequencetsequence_make_free (TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp, bool normalize)
 Construct a temporal sequence from an array of temporal instants and free the array and the instants after the creation. More...
 
TSequenceSettsequenceset_make (const TSequence **sequences, int count, bool normalize)
 Construct a temporal sequence set from an array of temporal sequences. More...
 
TSequenceSettsequenceset_make_exp (const TSequence **sequences, int count, int maxcount, bool normalize)
 Construct a temporal sequence set from an array of temporal sequences. More...
 
TSequenceSettsequenceset_make_free (TSequence **sequences, int count, bool normalize)
 Construct a temporal sequence set from an array of temporal sequences and free the array and the sequences after the creation. More...
 
TSequenceSettsequenceset_make_gaps (const TInstant **instants, int count, interpType interp, float maxdist, Interval *maxt)
 Construct a temporal sequence set from an array of temporal instants introducing a gap when two consecutive instants are separated from each other by at least the given distance or the given time interval. More...
 
Settstzset_agg_transfn (Set *state, TimestampTz t)
 Transition function for set aggregate of values. More...
 
int tstzset_cmp (const Set *ts1, const Set *ts2)
 
TimestampTz tstzset_end_timestamp (const Set *ts)
 Return the end value of a set. More...
 
bool tstzset_eq (const Set *ts1, const Set *ts2)
 
bool tstzset_ge (const Set *ts1, const Set *ts2)
 
bool tstzset_gt (const Set *ts1, const Set *ts2)
 
Settstzset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
bool tstzset_le (const Set *ts1, const Set *ts2)
 
bool tstzset_lt (const Set *ts1, const Set *ts2)
 
bool tstzset_ne (const Set *ts1, const Set *ts2)
 
int tstzset_num_timestamps (const Set *ts)
 
Settstzset_shift_tscale (const Set *ts, const Interval *shift, const Interval *duration)
 Return a timestamp set uned and/or scaled by the intervals. More...
 
TimestampTz tstzset_start_timestamp (const Set *ts)
 Return the start value of a set. More...
 
SkipListtstzset_tcount_transfn (SkipList *state, const Set *ts)
 Transition function for temporal count aggregate of timestamp sets. More...
 
bool tstzset_timestamp_n (const Set *ts, int n, TimestampTz *result)
 Return the n-th value of a set. More...
 
TimestampTztstzset_timestamps (const Set *ts)
 Return the array of timestamps of a set. More...
 
SpanSettstzset_to_periodset (const Set *ts)
 
STBoxtstzset_to_stbox (const Set *ts)
 Cast a timestamp set to a spatiotemporal box. More...
 
TBoxtstzset_to_tbox (const Set *ss)
 
SkipListtstzset_tunion_transfn (SkipList *state, const Set *ts)
 Transition function for aggregating timestamp sets. More...
 
bool ttext_always_eq (const Temporal *temp, text *txt)
 Return true if a temporal text is always equal to a text. More...
 
bool ttext_always_le (const Temporal *temp, text *txt)
 Return true if a temporal text is always less than or equal to a text. More...
 
bool ttext_always_lt (const Temporal *temp, text *txt)
 Return true if a temporal text is always less than a text. More...
 
Temporalttext_at_value (const Temporal *temp, text *txt)
 Restrict a temporal text to a text. More...
 
Temporalttext_at_values (const Temporal *temp, const Set *set)
 
textttext_end_value (const Temporal *temp)
 Return the end value of a temporal text. More...
 
bool ttext_ever_eq (const Temporal *temp, text *txt)
 Return true if a temporal text is ever equal to a text. More...
 
bool ttext_ever_le (const Temporal *temp, text *txt)
 Return true if a temporal text is ever less than or equal to a text. More...
 
bool ttext_ever_lt (const Temporal *temp, text *txt)
 Return true if a temporal text is ever less than a text. More...
 
Temporalttext_from_base (const text *txt, const Temporal *temp)
 Construct a temporal text from a text and the time frame of another temporal value. More...
 
Temporalttext_in (const char *str)
 Return a temporal text from its Well-Known Text (WKT) representation. More...
 
Temporalttext_lower (const Temporal *temp)
 Return a temporal text transformed to lowercase. More...
 
textttext_max_value (const Temporal *temp)
 Return the maximum value of a temporal text. More...
 
textttext_min_value (const Temporal *temp)
 Return the minimum value of a temporal text. More...
 
Temporalttext_minus_value (const Temporal *temp, text *txt)
 Restrict a temporal text to the complement of a text. More...
 
Temporalttext_minus_values (const Temporal *temp, const Set *set)
 
char * ttext_out (const Temporal *temp)
 Return a temporal text from its Well-Known Text (WKT) representation. More...
 
textttext_start_value (const Temporal *temp)
 Return the start value of a temporal text. More...
 
SkipListttext_tmax_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal max of temporal text values. More...
 
SkipListttext_tmin_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal min of temporal text values. More...
 
Temporalttext_upper (const Temporal *temp)
 Return a temporal text transformed to uppercase. More...
 
bool ttext_value_at_timestamp (const Temporal *temp, TimestampTz t, bool strict, text **value)
 Return the value of a temporal integer at a timestamp. More...
 
text ** ttext_values (const Temporal *temp, int *count)
 Return the the array of base values of a temporal text. More...
 
TSequencettextdiscseq_from_base_time (const text *txt, const Set *ts)
 Construct a temporal text discrete sequence from a text and a timestamp set. More...
 
TInstantttextinst_make (const text *txt, TimestampTz t)
 Construct a temporal instant text from the arguments. More...
 
TSequencettextseq_from_base (const text *txt, const TSequence *seq)
 Construct a temporal text sequence from a text and the time frame of another temporal sequence. More...
 
TSequencettextseq_from_base_time (const text *txt, const Span *p)
 Construct a temporal text sequence from a text and a period. More...
 
TSequenceSetttextseqset_from_base (const text *txt, const TSequenceSet *ss)
 Construct a temporal text sequence set from a text and the time frame of another temporal sequence set. More...
 
TSequenceSetttextseqset_from_base_time (const text *txt, const SpanSet *ps)
 Construct a temporal text sequence set from a text and a period set. More...
 
Temporalttouches_tpoint_geo (const Temporal *temp, const GSERIALIZED *gs, bool restr, bool atvalue)
 Return the temporal touches relationship between a geometry and a temporal point. More...
 
SpanSetunion_period_timestamp (const Span *p, TimestampTz t)
 Return the union of a period and a timestamp. More...
 
SpanSetunion_period_timestampset (const Span *p, const Set *ts)
 
SpanSetunion_periodset_timestamp (SpanSet *ps, TimestampTz t)
 Return the union of a period set and a timestamp. More...
 
Setunion_set_set (const Set *s1, const Set *s2)
 Return the union of two sets. More...
 
SpanSetunion_span_set (const Span *s, const Set *os)
 
SpanSetunion_span_span (const Span *s1, const Span *s2)
 Return the union of two spans. More...
 
SpanSetunion_spanset_set (const SpanSet *ss, const Set *s)
 
SpanSetunion_spanset_span (const SpanSet *ss, const Span *s)
 Return the union of a span set and a span. More...
 
SpanSetunion_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the union of two span sets. More...
 
STBoxunion_stbox_stbox (const STBox *box1, const STBox *box2, bool strict)
 Return the union of the spatiotemporal boxes. More...
 
TBoxunion_tbox_tbox (const TBox *box1, const TBox *box2)
 Return the union of the temporal boxes. More...
 
SpanSetunion_timestamp_period (TimestampTz t, const Span *p)
 
Setunion_timestamp_timestamp (TimestampTz t1, TimestampTz t2)
 
Setunion_timestamp_timestampset (TimestampTz t, const Set *ts)
 Return the union of a timestamp and a timestamp set. More...
 
SpanSetunion_timestampset_period (const Set *ts, const Span *p)
 
Setunion_timestampset_timestamp (const Set *ts, const TimestampTz t)
 Return the union of a timestamp set and a timestamp. More...