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

◆ ea_touches_tpoint_geo()

int ea_touches_tpoint_geo ( const Temporal temp,
const GSERIALIZED gs,
bool  ever 
)

Return 1 if a temporal point ever/always touches a geometry, 0 if not, and -1 on error or if the geometry is empty.

  • A temporal point ever touches a geometry if (a) the trajectory of the temporal point intersects the boundary of the geometry when the latter is not empty, or (b) the boundary of the trajectory of the temporal point intersects the geometry when the former is not empty
  • A temporal point always touches a geometry if the restriction of the temporal point to the complement of the boundary of the geometry (that is, MINUS) is empty. Note that when the two boundaries are empty, the trajectory of the point and the geometry are both (multi)points and the result is false.
    Parameters
    [in]tempTemporal point
    [in]gsGeometry
    [in]everTrue for the ever semantics, false for the always semantics @csqlfn Etouches_tpoint_geo()