PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ destroy_strtree()

static void destroy_strtree ( struct STRTree tree)
static

Clean up STRTree after use.

Definition at line 119 of file lwgeom_geos_cluster.c.

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

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

120 {
121  size_t i;
122  GEOSSTRtree_destroy(tree->tree);
123 
124  if (tree->envelopes)
125  {
126  for (i = 0; i < tree->num_geoms; i++)
127  {
128  GEOSGeom_destroy(tree->envelopes[i]);
129  }
130  lwfree(tree->envelopes);
131  }
132  lwfree(tree->geom_ids);
133 }
GEOSGeometry ** envelopes
void lwfree(void *mem)
Definition: lwutil.c:244
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: