|
◆ temporal_split_n_spans()
Span * temporal_split_n_spans |
( |
const Temporal * |
temp, |
|
|
int |
span_count, |
|
|
int * |
count |
|
) |
| |
Return an array of N spans obtained from the instants or segments of a temporal value, where the choice between instants or segments depends, respectively, on whether the interpolation is discrete or continuous.
- Parameters
-
[in] | temp | Temporal value |
[in] | span_count | Number of spans |
[out] | count | Number of values of the output array |
- Returns
- If the number of instants or segments is <=
span_count , the result contains one span per instant or segment. Otherwise, consecutive instants or segments are combined into a single span in the result to reach the number of spans. On error return NULL @csqlfn Temporal_split_n_spans()
|