PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ destroy_strtree()

static void destroy_strtree ( struct STRTree tree)
static

Clean up STRTree after use.

Definition at line 122 of file lwgeom_geos_cluster.c.

123{
124 size_t i;
125 GEOSSTRtree_destroy(tree->tree);
126
127 if (tree->envelopes)
128 {
129 for (i = 0; i < tree->num_geoms; i++)
130 {
131 GEOSGeom_destroy(tree->envelopes[i]);
132 }
133 lwfree(tree->envelopes);
134 }
135 lwfree(tree->geom_ids);
136}
void lwfree(void *mem)
Definition lwutil.c:248
GEOSGeometry ** envelopes
uint32_t * geom_ids
uint32_t num_geoms
GEOSSTRtree * tree

References lwfree(), and STRTree::tree.

Referenced by union_dbscan_general(), union_dbscan_minpoints_1(), and union_intersecting_pairs().

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