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

◆ tpointseq_linear_restrict_stbox()

TSequenceSet * tpointseq_linear_restrict_stbox ( const TSequence seq,
const STBox box,
bool  border_inc,
bool  atfunc 
)

Return a temporal point sequence restricted to (the complement of) a spatiotemporal box.

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. The function first filters the temporal point wrt the time dimension to reduce the number of instants before computing the restriction to the spatial dimension.

Parameters
[in]seqtemporal point sequence
[in]boxSpatiotemporal box
[in]border_incTrue when the box contains the upper border
[in]atfuncTrue if the restriction is at, false for minus
Precondition
The box has only X dimension, the arguments have the same SRID, and the sequence is not instantaneous.
Note
The function only restricts to the spatial dimension, the restriction to the time dimension is made in function tgeo_restrict_stbox.