PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ destroy_strtree()

static void destroy_strtree ( struct STRTree  tree)
static

Clean up STRTree after use.

Definition at line 100 of file lwgeom_geos_cluster.c.

References STRTree::envelopes, STRTree::geom_ids, lwfree(), STRTree::num_geoms, and STRTree::tree.

Referenced by union_intersecting_pairs(), and union_pairs_within_distance().

101 {
102  size_t i;
103  GEOSSTRtree_destroy(tree.tree);
104 
105  for (i = 0; i < tree.num_geoms; i++)
106  {
107  GEOSGeom_destroy(tree.envelopes[i]);
108  }
109  lwfree(tree.geom_ids);
110  lwfree(tree.envelopes);
111 }
GEOSGeometry ** envelopes
void lwfree(void *mem)
Definition: lwutil.c:214
GEOSSTRtree * tree
uint32_t * geom_ids
uint32_t num_geoms
Here is the call graph for this function:
Here is the caller graph for this function: