MobilityDB 1.1

◆ tpointseq_timestamp_at_value()

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

Return the timestamp at which a temporal point sequence is equal to a point.

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 tpointsegm_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 point sequence
[in]valueBase value
[out]tTimestamp
Returns
Return true if the point is found in the temporal point
Precondition
The point 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