PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ union_if_available()

static void union_if_available ( UNIONFIND uf,
uint32_t  p,
uint32_t  q,
char *  is_in_core,
char *  in_a_cluster 
)
static

Definition at line 292 of file lwgeom_geos_cluster.c.

293 {
294  if (in_a_cluster[q])
295  {
296  /* Can we merge p's cluster with q's cluster? We can do this only
297  * if both p and q are considered _core_ points of their respective
298  * clusters.
299  */
300  if (is_in_core[q])
301  {
302  UF_union(uf, p, q);
303  }
304  }
305  else
306  {
307  UF_union(uf, p, q);
308  in_a_cluster[q] = LW_TRUE;
309  }
310 }
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
void UF_union(UNIONFIND *uf, uint32_t i, uint32_t j)
Definition: lwunionfind.c:84

References LW_TRUE, and UF_union().

Referenced by union_dbscan_general().

Here is the call graph for this function:
Here is the caller graph for this function: