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

◆ geo_split_each_n_gboxes()

GBOX * geo_split_each_n_gboxes ( const GSERIALIZED gs,
int  elems_per_box,
int *  count 
)

Return an array of spatial boxes obtained by merging consecutive segments of a (multi)line.

Parameters
[in]gs(Multi)line
[in]elems_per_boxNumber of input segments combined in an output box
[out]countNumber of boxes in the output array
Returns
If the number of segments is <= elems_per_box, the result contains a single box. Otherwise, consecutive input segments are combined into an output box in the result. On error return NULL