PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
|
static |
Uses a UNIONFIND to identify the set with which each input geometry is associated, and groups the geometries into GeometryCollections.
Supplied geometry array may be of either LWGEOM* or GEOSGeometry*; is_lwgeom is used to identify which. Caller is responsible for freeing input geometry array but not the items contained within it.
Definition at line 542 of file lwgeom_geos_cluster.c.
References COLLECTIONTYPE, LW_FAILURE, LW_SUCCESS, lwalloc(), lwcollection_construct(), lwfree(), UNIONFIND::num_clusters, UF_find(), and UF_ordered_by_cluster().
Referenced by cluster_intersecting(), and cluster_within_distance().