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

◆ ensure_valid_tinstarr()

bool ensure_valid_tinstarr ( const TInstant **  instants,
int  count,
bool  merge,
interpType interp  UNUSED 
)

Ensure that all temporal instants of the array are valid.

For this, the instants must 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. If the bounding box output argument is not NULL, the bounding box of the resulting sequence is computed

Parameters
[in]instantsArray of temporal instants
[in]countNumber of elements in the input array
[in]mergeTrue if a merge operation, which implies that two consecutive instants may be equal
[in]interpInterpolation
Note
The argument interp is only used for temporal network points.