MobilityDB 1.3
Loading...
Searching...
No Matches

◆ tdwithin_tgeo_tgeo()

Temporal * tdwithin_tgeo_tgeo ( const Temporal temp1,
const Temporal temp2,
double  dist,
bool  restr,
bool  atvalue 
)

Return a temporal Boolean that states whether two temporal geos are within a distance.

The temporal tdwithin relationship is computed as follows:

  • For temporal points, compute the instants at which two temporal sequences have a distance d between each other, which amounts to solve the equation distance(seg1(t), seg2(t)) = d for each pair of synchronized segments seg1, seg2.
  • For temporal geometries, compute the relationship at each instant with the lifting infrastructure.
    Parameters
    [in]temp1,temp2Temporal geos
    [in]distDistance
    [in]restrTrue when the result is restricted to a value
    [in]atvalueValue to restrict @csqlfn Tdwithin_tgeo_tgeo()
    Note
    The function is available for temporal geographies but not for temporal geography points since this requires to compute the solutions of the quadatric equation for each pair of segments of the temporal points