MobilityDB 1.1

◆ spanset_make()

SpanSet * spanset_make ( const Span **  spans,
int  count,
bool  normalize 
)

Construct a span set from an array of disjoint span.

For example, the memory structure of a SpanSet with 3 span is as follows

---------------------------------------------------------------------------------
( SpanSet )_X | ( bbox )_X | ( Span_0 )_X | ( Span_1 )_X | ( Span_2 )_X |
---------------------------------------------------------------------------------
Structure to represent span sets.
Definition: meos.h:83

where the X are unused bytes added for double padding, and bbox is the bounding box which is also a span.

Parameters
[in]spansArray of spans
[in]countNumber of elements in the array
[in]normalizeTrue if the resulting value should be normalized
SQL Function:
spanset()