PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
int cluster_within_distance | ( | LWGEOM ** | geoms, |
uint32_t | num_geoms, | ||
double | tolerance, | ||
LWGEOM *** | clusterGeoms, | ||
uint32_t * | num_clusters | ||
) |
Takes an array of LWGEOM* and constructs an array of LWGEOM*, where each element in the constructed array is a GeometryCollection representing a set of geometries separated by no more than the specified tolerance.
Caller is responsible for freeing the input array, but not the LWGEOM* items inside it.
Definition at line 526 of file lwgeom_geos_cluster.c.
References combine_geometries(), LW_FAILURE, UF_create(), UF_destroy(), and union_dbscan().
Referenced by cluster_within_distance_garray(), and perform_cluster_within_distance_test().