PostGIS  3.3.9dev-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 295 of file lwgeom_geos_cluster.c.

296 {
297  if (in_a_cluster[q])
298  {
299  /* Can we merge p's cluster with q's cluster? We can do this only
300  * if both p and q are considered _core_ points of their respective
301  * clusters.
302  */
303  if (is_in_core[q])
304  {
305  UF_union(uf, p, q);
306  }
307  }
308  else
309  {
310  UF_union(uf, p, q);
311  in_a_cluster[q] = LW_TRUE;
312  }
313 }
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:108
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: