41#include "general/temporal.h"
69#define DatumGetNpointP(X) ((Npoint *) DatumGetPointer(X))
70#define NpointPGetDatum(X) PointerGetDatum(X)
71#define PG_GETARG_NPOINT_P(X) DatumGetNpointP(PG_GETARG_DATUM(X))
72#define PG_RETURN_NPOINT_P(X) PG_RETURN_POINTER(X)
75#define DatumGetNsegmentP(X) ((Nsegment *) DatumGetPointer(X))
76#define NsegmentPGetDatum(X) PointerGetDatum(X)
77#define PG_GETARG_NSEGMENT_P(X) DatumGetNsegmentP(PG_GETARG_DATUM(X))
86#define NPOINT_TO_GEOM true
87#define GEOM_TO_NPOINT false
TSequence * tnpointcontseq_tgeompointcontseq(const TSequence *seq)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:92
TInstant * tgeompointinst_tnpointinst(const TInstant *inst)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:160
TSequenceSet * tnpointseqset_tgeompointseqset(const TSequenceSet *ss)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:124
Set * tnpointseqset_routes(const TSequenceSet *ss)
Return the routes of a temporal network point.
Definition: tnpoint.c:456
Nsegment ** tnpoint_positions(const Temporal *temp, int *count)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:368
Set * tnpoint_routes(const Temporal *temp)
Return the array of routes of a temporal network point.
Definition: tnpoint.c:475
Set * tnpointdiscseq_routes(const TSequence *is)
Return the routes of a temporal network point.
Definition: tnpoint.c:426
TSequenceSet * tgeompointseqset_tnpointseqset(const TSequenceSet *ss)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:199
Temporal * tgeompoint_tnpoint(const Temporal *temp)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:221
TSequence * tgeompointdiscseq_tnpointdiscseq(const TSequence *is)
int64 tnpointinst_route(const TInstant *inst)
Return the route of the temporal network point.
Definition: tnpoint.c:390
Set * tnpointinst_routes(const TInstant *inst)
Return the routes of a temporal network point.
Definition: tnpoint.c:415
Nsegment ** tnpointinst_positions(const TInstant *inst)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:245
Temporal * tnpoint_tgeompoint(const Temporal *temp)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:139
TInstant * tnpointinst_tgeompointinst(const TInstant *inst)
Basic functions for temporal network points.
Definition: tnpoint.c:62
TSequence * tgeompointseq_tnpointseq(const TSequence *seq)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:175
Set * tnpointcontseq_routes(const TSequence *seq)
Return the routes of a temporal network point.
Definition: tnpoint.c:444
Nsegment ** tnpointseq_positions(const TSequence *seq, int *count)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:298
TSequence * tnpointdiscseq_tgeompointdiscseq(const TSequence *is)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:76
int64 tnpoint_route(const Temporal *temp)
Return the single route of a temporal network point.
Definition: tnpoint.c:400
Nsegment * tnpointseq_linear_positions(const TSequence *seq)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:278
Nsegment ** tnpointseqset_positions(const TSequenceSet *ss, int *count)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:355
long int int64
Definition: pg_ext_defs.in.h:9
int64 rid
route identifier
Definition: tnpoint.h:51
double pos
position
Definition: tnpoint.h:52
Functions for temporal network points.
Definition: tnpoint.h:50
double pos2
position2
Definition: tnpoint.h:61
double pos1
position1
Definition: tnpoint.h:60
int64 rid
route identifier
Definition: tnpoint.h:59
API of the Mobility Engine Open Source (MEOS) library.
Definition: meos.h:56
Structure to represent temporal values of instant subtype.
Definition: meos.h:148
Structure to represent temporal values of sequence set subtype.
Definition: meos.h:186
Structure to represent temporal values of instant set or sequence subtype.
Definition: meos.h:165
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:136