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

◆ lwmpoint_free()

void lwmpoint_free ( LWMPOINT mpt)
extern

Definition at line 72 of file lwmpoint.c.

73{
74 uint32_t i;
75
76 if ( ! mpt ) return;
77
78 if ( mpt->bbox )
79 lwfree(mpt->bbox);
80
81 for ( i = 0; i < mpt->ngeoms; i++ )
82 if ( mpt->geoms && mpt->geoms[i] )
83 lwpoint_free(mpt->geoms[i]);
84
85 if ( mpt->geoms )
86 lwfree(mpt->geoms);
87
88 lwfree(mpt);
89}
void lwpoint_free(LWPOINT *pt)
Definition lwpoint.c:213
void lwfree(void *mem)
Definition lwutil.c:248
GBOX * bbox
Definition liblwgeom.h:532
uint32_t ngeoms
Definition liblwgeom.h:538
LWPOINT ** geoms
Definition liblwgeom.h:533

References LWMPOINT::bbox, LWMPOINT::geoms, lwfree(), lwpoint_free(), and LWMPOINT::ngeoms.

Referenced by lwgeom_extract_unique_endpoints(), lwgeom_free(), lwmline_locate_along(), parse_geojson_multipoint(), ST_Points(), test_lwline_from_lwmpoint(), and test_point_density().

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