321 .num_items_found = 0,
322 .items_found_size = 0
326 if (in_a_cluster_ret)
328 char* in_a_cluster =
lwalloc(num_geoms *
sizeof(
char));
329 for (i = 0; i < num_geoms; i++)
331 *in_a_cluster_ret = in_a_cluster;
338 if (tree.tree == NULL)
344 for (p = 0; p < num_geoms; p++)
357 if (mindist == FLT_MAX)
double lwgeom_mindistance2d_tolerance(const LWGEOM *lw1, const LWGEOM *lw2, double tolerance)
Function handling min distance calculations and dwithin calculations.
uint32_t UF_find(UNIONFIND *uf, uint32_t i)
static struct STRTree make_strtree(void **geoms, uint32_t num_geoms, char is_lwgeom)
Make a GEOSSTRtree that stores a pointer to a variable containing the array index of the input geoms...
#define LW_TRUE
Return types for functions with status returns.
static void destroy_strtree(struct STRTree *tree)
Clean up STRTree after use.
static int dbscan_update_context(GEOSSTRtree *tree, struct QueryContext *cxt, LWGEOM **geoms, uint32_t p, double eps)
void UF_union(UNIONFIND *uf, uint32_t i, uint32_t j)
void * lwalloc(size_t size)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...