PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwmpoint_free()

void lwmpoint_free ( LWMPOINT mpt)

Definition at line 72 of file lwmpoint.c.

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

Referenced by contains(), coveredby(), covers(), geos_intersects(), lwgeom_extract_unique_endpoints(), lwgeom_free(), lwmline_locate_along(), ST_Points(), test_lwline_from_lwmpoint(), and test_point_density().

73 {
74  int 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 }
GBOX * bbox
Definition: liblwgeom.h:466
void lwfree(void *mem)
Definition: lwutil.c:244
void lwpoint_free(LWPOINT *pt)
Definition: lwpoint.c:213
LWPOINT ** geoms
Definition: liblwgeom.h:470
int ngeoms
Definition: liblwgeom.h:468
Here is the call graph for this function:
Here is the caller graph for this function: