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

◆ line_split_each_n_gboxes_iter()

static int line_split_each_n_gboxes_iter ( const LWLINE lwline,
int  elems_per_box,
bool  geodetic,
GBOX result 
)
static

Return an array of spatial boxes from the segments of a line (iterator function)

Parameters
[in]lwlineLine
[in]elems_per_boxNumber of input segments merged into an output box
[in]geodeticTrue when the line is geodetic
[out]resultArray of boxes
Returns
Number of elements in the output array. If the number of segments <= elems_per_box, the result contains a single box. Otherwise, consecutive input segments are combined into a single output box.
Note
We must pass the geodetic flag since LWLINE does not have this flag set