MobilityDB 1.1

◆ tdwithin_tpointsegm_tpointsegm()

int tdwithin_tpointsegm_tpointsegm ( Datum  sv1,
Datum  ev1,
Datum  sv2,
Datum  ev2,
TimestampTz  lower,
TimestampTz  upper,
double  dist,
bool  hasz,
datum_func3  func,
TimestampTz t1,
TimestampTz t2 
)

Return the timestamps at which EITHER the segments of the two temporal points OR a segment of a temporal point and a point are within the given distance.

Parameters
[in]sv1,ev1Points defining the first segment
[in]sv2,ev2Points defining the second segment
[in]lower,upperTimestamps associated to the segments
[in]distDistance
[in]haszTrue for 3D segments
[in]funcDistance function (2D or 3D)
[out]t1,t2Resulting timestamps
Returns
Number of timestamps in the result, between 0 and 2. In the case of a single result both t1 and t2 are set to the unique timestamp