MobilityDB  1.0

◆ tpointseq_timestamp_at_value()

bool tpointseq_timestamp_at_value ( const TSequence seq,
Datum  value,
TimestampTz *  t 
)

Returns the timestamp at which the temporal value takes the base value.

This function is called by the atGeometry function to find the timestamp at which an intersection point found by PostGIS is located. This function differs from function tpointseq_intersection_value in particular since the latter is used for finding crossings during synchronization and thus it is required that the timestamp in strictly between the timestamps of a segment.

Parameters
[in]seqTemporal value
[in]valueBase value
[out]tTimestamp
Returns
Returns true if the base value is found in the temporal value
Precondition
The base value is known to belong to the temporal sequence (taking into account roundoff errors), the temporal sequence has linear interpolation, and it simple
Note
The resulting timestamp may be at an exclusive bound.