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

◆ line_split_n_gboxes_iter()

static int line_split_n_gboxes_iter ( const LWLINE lwline,
int  box_count,
bool  geodetic,
GBOX result 
)
static

Return an array of N spatial boxes obtained by merging consecutive segments of a line (iterator function)

Parameters
[in]lwlineLine
[in]box_countNumber of boxes
[in]geodeticTrue when the line is geodetic
[out]resultArray of boxes. If totalpoints <= box_count, the result contains one box per segment. Otherwise, consecutive input segments are combined into a single box in the result to reach the given number of boxes.
Returns
Number of elements in the output array
Note
We must pass the geodetic flag since LWLINE does not have this flag set