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

◆ spanset_make_exp()

SpanSet * spanset_make_exp ( Span spans,
int  count,
int  maxcount,
bool  normalize,
bool  order 
)

Return a span set from an array of disjoint spans enabling the data structure to expand.

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:108

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]maxcountMaximum number of elements in the array
[in]normalizeTrue when the resulting value should be normalized
[in]orderTrue when the input spans should should be ordered