MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
tcbuffer_distance.c File Reference

Temporal distance for temporal circular buffers. More...

#include <meos.h>
#include <meos_internal.h>
#include <meos_internal_geo.h>
#include "temporal/lifting.h"
#include "geo/tgeo.h"
#include "geo/tgeo_spatialfuncs.h"
#include "cbuffer/cbuffer.h"
#include "cbuffer/tcbuffer.h"

Functions

int cbuffersegm_distance_turnpt (const Cbuffer *start1, const Cbuffer *end1, const Cbuffer *start2, const Cbuffer *end2, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return 1 or 2 if two temporal circular buffers segments are at a minimum distance during the period defined by the output timestamps, return 0 otherwise. More...
 
double nad_cbuffer_stbox (const Cbuffer *cb, const STBox *box)
 Return the nearest approach distance between a circular buffer and a spatiotemporal box. More...
 
double nad_tcbuffer_cbuffer (const Temporal *temp, const Cbuffer *cb)
 Return the nearest approach distance of a temporal circular buffer and a circular buffer. More...
 
double nad_tcbuffer_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return the nearest approach distance of a temporal circular buffer and a geometry. More...
 
double nad_tcbuffer_stbox (const Temporal *temp, const STBox *box)
 Return the nearest approach distance of a temporal circular buffer and a spatiotemporal box. More...
 
double nad_tcbuffer_tcbuffer (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance of two temporal circular buffers. More...
 
TInstantnai_tcbuffer_cbuffer (const Temporal *temp, const Cbuffer *cb)
 Return the nearest approach instant of the circular buffer and a temporal circular buffer. More...
 
TInstantnai_tcbuffer_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return the nearest approach instant of the temporal circular buffer and a geometry. More...
 
TInstantnai_tcbuffer_tcbuffer (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach instant of two temporal circular buffers. More...
 
GSERIALIZEDshortestline_tcbuffer_cbuffer (const Temporal *temp, const Cbuffer *cb)
 Return the line connecting the nearest approach point between a circular buffer and a temporal circular buffer. More...
 
GSERIALIZEDshortestline_tcbuffer_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return the line connecting the nearest approach point between a geometry and a temporal circular buffer. More...
 
GSERIALIZEDshortestline_tcbuffer_tcbuffer (const Temporal *temp1, const Temporal *temp2)
 Return the line connecting the nearest approach point between two temporal circular buffers. More...
 
int tcbuffer_cbuffer_distance_turnpt (Datum start, Datum end, Datum value, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return 1 or 3 if a temporal circular buffer segment and a geometry point are at the minimum distance during the period defined by the output timestamps, return 0 otherwise. More...
 
int tcbuffer_tcbuffer_distance_turnpt (Datum start1, Datum end1, Datum start2, Datum end2, Datum param UNUSED, TimestampTz lower, TimestampTz upper, TimestampTz *t1, TimestampTz *t2)
 Return 1 or 2 if two temporal circular buffers segments are at a minimum distance during the periods defined by the output timestamps, return 0 otherwise. More...
 
Temporaltdistance_tcbuffer_cbuffer (const Temporal *temp, const Cbuffer *cb)
 Return the temporal distance between a temporal circular buffer and a circular buffer @csqlfn Tdistance_tcbuffer_cbuffer() More...
 
Temporaltdistance_tcbuffer_geo (const Temporal *temp, const GSERIALIZED *gs)
 Return the temporal distance between a temporal circular buffer and a geometry @csqlfn Tdistance_tcbuffer_geo() More...
 
Temporaltdistance_tcbuffer_tcbuffer (const Temporal *temp1, const Temporal *temp2)
 Return the temporal distance between two temporal circular buffers. More...
 

Detailed Description

Temporal distance for temporal circular buffers.