PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwpoly_free()

void lwpoly_free ( LWPOLY poly)

Definition at line 152 of file lwpoly.c.

References LWPOLY::bbox, lwfree(), LWPOLY::nrings, ptarray_free(), and LWPOLY::rings.

Referenced by _lwt_AddFaceSplit(), _lwt_EdgeMotionArea(), BOX2D_to_LWGEOM(), BOX3D_to_LWGEOM(), do_test_lwgeom_effectivearea_polys(), lwcurvepoly_area(), LWGEOM_envelope(), lwgeom_free(), LWGEOM_interiorringn_polygon(), lwmpoly_free(), lwpoly_grid(), lwpoly_simplify(), lwpsurface_free(), polygon_to_geometry(), RASTER_getPixelPolygons(), RASTER_nearestValue(), rt_raster_compute_skewed_raster(), rt_raster_gdal_rasterize(), rt_raster_surface(), ST_MakeEnvelope(), test_lwpoly_construct_circle(), test_ptarray_isccw(), test_raster_pixel_as_polygon(), test_rect_tree_contains_point(), and test_rect_tree_intersects_tree().

153 {
154  int t;
155 
156  if( ! poly ) return;
157 
158  if ( poly->bbox )
159  lwfree(poly->bbox);
160 
161  for (t=0; t<poly->nrings; t++)
162  {
163  if ( poly->rings[t] )
164  ptarray_free(poly->rings[t]);
165  }
166 
167  if ( poly->rings )
168  lwfree(poly->rings);
169 
170  lwfree(poly);
171 }
void lwfree(void *mem)
Definition: lwutil.c:242
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
GBOX * bbox
Definition: liblwgeom.h:452
POINTARRAY ** rings
Definition: liblwgeom.h:456
int nrings
Definition: liblwgeom.h:454
Here is the call graph for this function:
Here is the caller graph for this function: