MobilityDB 1.1

◆ ADD_CURRENT_POSITION

#define ADD_CURRENT_POSITION
Value:
do { \
lwpoint = lwpoint_make2d(srid, curPos.x, curPos.y); \
point = PointerGetDatum(geo_serialize((LWGEOM *) lwpoint)); \
lwpoint_free(lwpoint); \
instants[l++] = tinstant_make(point, T_TGEOMPOINT, t); \
pfree(DatumGetPointer(point)); \
} while (0)
TInstant * tinstant_make(Datum value, meosType temptype, TimestampTz t)
Construct a temporal instant from the arguments.
Definition: tinstant.c:276
@ T_TGEOMPOINT
temporal geometry point type
Definition: meos_catalog.h:94
GSERIALIZED * geo_serialize(const LWGEOM *geom)
Serialize a geometry/geography.
Definition: tpoint_spatialfuncs.c:226
#define DatumGetPointer(X)
Definition: postgres.h:612
#define PointerGetDatum(X)
Definition: postgres.h:619
Definition: postgis_ext_defs.in.h:153