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

◆ tpointseq_linear_restrict_geom()

TSequenceSet * tpointseq_linear_restrict_geom ( const TSequence seq,
const GSERIALIZED gs,
const Span zspan,
bool  atfunc 
)

Return a temporal point sequence with linear interpolation restricted to (the complement of) a geometry and possibly a Z span and a timestamptz span.

The function first filters the temporal point wrt the time dimension to reduce the number of instants before computing the restriction to the geometry, which is an expensive operation. Notice that we need to filter wrt the Z dimension after that since while doing this, the subtype of the temporal point may change from a sequence to a sequence set.

Parameters
[in]seqTemporal point
[in]gsGeometry
[in]zspanSpan of values to restrict the Z dimension
[in]atfuncTrue if the restriction is at, false for minus
Note
The function computes the "at" restriction on all dimensions. Then, for the "minus" restriction, it computes the complement of the "at" restriction with respect to the time dimension.
Precondition
Instantaneous sequences have been managed in the calling function