1605 uint32_t *iterator_stack =
lwalloc(
sizeof(uint32_t) * pa->
npoints);
1606 iterator_stack[0] = 0;
1607 uint32_t iterator_stack_size = 1;
1609 uint32_t it_first = 0;
1610 uint32_t it_last = pa->
npoints - 1;
1612 const double tolerance_sqr = tolerance * tolerance;
1614 double it_tol = keptn >= minpts ? tolerance_sqr : -1.0;
1616 while (iterator_stack_size)
1619 if (split == it_first)
1622 it_last = iterator_stack[--iterator_stack_size];
1629 iterator_stack[iterator_stack_size++] = it_last;
1631 it_tol = keptn >= minpts ? tolerance_sqr : -1.0;
1648 for (uint32_t i = 1; i < pa->
npoints; i++)
void * lwalloc(size_t size)
#define LW_TRUE
Return types for functions with status returns.
static size_t ptarray_point_size(const POINTARRAY *pa)
static uint32_t ptarray_dp_findsplit_in_place(const POINTARRAY *pts, uint32_t it_first, uint32_t it_last, double max_distance_sqr)
uint8_t * serialized_pointlist