MobilityDB  1.0

◆ 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, type_oid(T_GEOMETRY)); \
pfree(DatumGetPointer(point)); \
} while (0)
TInstant * tinstant_make(Datum value, TimestampTz t, Oid basetypid)
Construct a temporal instant value from the arguments.
Definition: tinstant.c:120
GSERIALIZED * geo_serialize(LWGEOM *geom)
Serialize a geometry/geography.
Definition: tpoint_spatialfuncs.c:250
Definition: tempcache.h:94
Oid type_oid(CachedType type)
Fetch from the cache the Oid of a type.
Definition: tempcache.c:362