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

◆ tsegment_intersection_value()

int tsegment_intersection_value ( Datum  start,
Datum  end,
Datum  value,
meosType  temptype,
TimestampTz  lower,
TimestampTz  upper,
TimestampTz t1,
TimestampTz t2 
)

Return 1 or 2 if a temporal segment intersects a base value during the period defined by the output timestamps, return 0 otherwise.

Parameters
[in]start,endValues defining the segment
[in]valueValue to locate
[in]temptypeTemporal type
[in]lower,upperTimestamps defining the segment
[out]t1,t2Timestamps defining the resulting period, may be equal
Returns
Return 0 if the value is equal to the first or the last instant
Note
The function is used in the lifting infrastructure for determining whether a temporal segment intersects a value