PostGIS  3.4.0dev-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 294 of file lwgeom_geos_cluster.c.

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

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: