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

◆ lwcollection_free()

void lwcollection_free ( LWCOLLECTION col)

Definition at line 357 of file lwcollection.c.

358{
359 uint32_t i;
360 if ( ! col ) return;
361
362 if ( col->bbox )
363 {
364 lwfree(col->bbox);
365 }
366 for ( i = 0; i < col->ngeoms; i++ )
367 {
368 LWDEBUGF(4,"freeing geom[%d]", i);
369 if ( col->geoms && col->geoms[i] )
370 lwgeom_free(col->geoms[i]);
371 }
372 if ( col->geoms )
373 {
374 lwfree(col->geoms);
375 }
376 lwfree(col);
377}
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
void lwfree(void *mem)
Definition lwutil.c:248
#define LWDEBUGF(level, msg,...)
Definition lwgeom_log.h:106
uint32_t ngeoms
Definition liblwgeom.h:580
GBOX * bbox
Definition liblwgeom.h:574
LWGEOM ** geoms
Definition liblwgeom.h:575

References LWCOLLECTION::bbox, LWCOLLECTION::geoms, LWDEBUGF, lwfree(), lwgeom_free(), and LWCOLLECTION::ngeoms.

Referenced by _lwt_AddLineEdge(), BOX3D_to_LWGEOM(), coverage_window_calculation(), gserialized_list_union(), lwcollection_from_wkb_state(), lwcollection_homogenize(), lwcollection_offsetcurve(), lwgeom_free(), lwgeom_node(), lwgeom_solid_contains_lwgeom(), lwgeom_split_wrapx(), lwgeom_subdivide_prec(), lwgeom_to_x3d3_sb(), lwt_ModEdgeSplit(), lwt_NewEdgesSplit(), pta_unstroke(), test_geos_subdivide(), test_lwcollection_extract(), test_lwline_clip(), test_lwline_clip_big(), test_lwline_split_by_point_to(), test_lwmline_clip(), test_lwpoly_clip(), and test_lwtriangle_clip().

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