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

◆ tdwithin_tgeo_geo()

Temporal * tdwithin_tgeo_geo ( const Temporal temp,
const GSERIALIZED gs,
double  dist,
bool  restr,
bool  atvalue 
)

Return a temporal Boolean that states whether a temporal geo and a geometry are within a distance.

The temporal tdwithin relationship is computed as follows:

  • For temporal points, compute the instants in which the temporal sequence has a distance d from the geometry, which amounts to solve the equation distance(seg(t), geo) = d for each segment seg of the sequence.
  • For temporal geometries, compute the relationship at each instant using the lifting infrastructure.
    Parameters
    [in]tempTemporal geo
    [in]gsGeometry
    [in]distDistance
    [in]restrTrue when the result is restricted to a value
    [in]atvalueValue to restrict @csqlfn Tdwithin_tgeo_geo()
    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 segment of the temporal point