MobilityDB 1.1

◆ ensure_valid_tinstarr_gaps()

int * ensure_valid_tinstarr_gaps ( const TInstant **  instants,
int  count,
bool  merge,
interpType  interp,
double  maxdist,
Interval maxt,
int *  countsplits 
)

Ensure that all temporal instants of the array have increasing timestamp (or may be equal if the merge parameter is true), and if they are temporal points, have the same srid and the same dimensionality.

This function extends function ensure_valid_tinstarr by determining the splits that must be made according the maximum distance or interval between consecutive instants.

Parameters
[in]instantsArray of temporal instants
[in]countNumber of elements in the input array
[in]mergeTrue if a merge operation, which implies that the two consecutive instants may be equal
[in]interpInterpolation
[in]maxdistMaximum distance to split the temporal sequence
[in]maxtMaximum time interval to split the temporal sequence
[out]countsplitsNumber of splits
Returns
Array of indices at which the temporal sequence is split

x