Definition at line 229 of file liblwgeom/lwgeom_geos_clean.c.
References lwalloc(), LWDEBUGF, lwfree(), POINTARRAY::npoints, LWPOLY::nrings, ptarray_free(), ring_make_geos_friendly(), and LWPOLY::rings.
Referenced by LWGEOM_GEOS_getPointN(), and lwgeom_make_geos_friendly().
242 for (i=0; i<poly->
nrings; i++)
247 if ( ring_in != ring_out )
249 LWDEBUGF(3,
"lwpoly_make_geos_friendly: ring %d cleaned, now has %d points", i, ring_out->
npoints);
254 LWDEBUGF(3,
"lwpoly_make_geos_friendly: ring %d untouched", i);
258 new_rings[i] = ring_out;
262 poly->
rings = new_rings;
void ptarray_free(POINTARRAY *pa)
POINTARRAY * ring_make_geos_friendly(POINTARRAY *ring)
void * lwalloc(size_t size)
#define LWDEBUGF(level, msg,...)