Definition at line 464 of file lwpoly.c.
References LWPOLY::flags, FLAGS_GET_M, FLAGS_GET_Z, LW_FAILURE, LWDEBUGF, lwpoly_add_ring(), lwpoly_construct_empty(), lwpoly_free(), lwpoly_is_empty(), POINTARRAY::npoints, LWPOLY::nrings, ovdump::opts, ptarray_free(), ptarray_simplify(), LWPOLY::rings, LWPOLY::srid, and LWPOLY::type.
Referenced by lwgeom_simplify().
469 LWDEBUGF(2,
"%s: simplifying polygon with %d rings", __func__, ipoly->
nrings);
477 for ( i = 0; i < ipoly->
nrings; i++ )
484 if ( preserve_collapsed && i == 0 )
void ptarray_free(POINTARRAY *pa)
int lwpoly_add_ring(LWPOLY *poly, POINTARRAY *pa)
Add a ring to a polygon.
LWPOLY * lwpoly_construct_empty(int srid, char hasz, char hasm)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
POINTARRAY * ptarray_simplify(POINTARRAY *inpts, double epsilon, unsigned int minpts)
void lwpoly_free(LWPOLY *poly)
#define FLAGS_GET_M(flags)
#define LWDEBUGF(level, msg,...)
int lwpoly_is_empty(const LWPOLY *poly)