PostGIS  2.1.10dev-r@@SVN_REVISION@@
void lwpoly_free ( LWPOLY poly)

Definition at line 79 of file lwpoly.c.

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

Referenced by BOX2D_to_LWGEOM(), lwcurvepoly_area(), LWGEOM_envelope(), lwgeom_free(), LWGEOM_interiorringn_polygon(), lwmpoly_free(), lwpsurface_free(), polygon_to_geometry(), RASTER_getPixelPolygons(), RASTER_nearestValue(), rt_raster_compute_skewed_raster(), rt_raster_gdal_rasterize(), rt_raster_surface(), ST_MakeEnvelope(), test_ptarray_isccw(), test_raster_pixel_as_polygon(), test_rect_tree_contains_point(), and test_rect_tree_intersects_tree().

80 {
81  int t;
82 
83  if( ! poly ) return;
84 
85  if ( poly->bbox )
86  lwfree(poly->bbox);
87 
88  for (t=0; t<poly->nrings; t++)
89  {
90  if ( poly->rings[t] )
91  ptarray_free(poly->rings[t]);
92  }
93 
94  if ( poly->rings )
95  lwfree(poly->rings);
96 
97  lwfree(poly);
98 }
void lwfree(void *mem)
Definition: lwutil.c:190
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:315
GBOX * bbox
Definition: liblwgeom.h:409
POINTARRAY ** rings
Definition: liblwgeom.h:413
int nrings
Definition: liblwgeom.h:411

Here is the call graph for this function:

Here is the caller graph for this function: