Definition at line 477 of file effectivearea.c.
478{
479 LWDEBUG(2,
"Entered lwpoly_set_effective_area");
480 uint32_t i;
481 int set_m;
482 int avoid_collapse=4;
483 if(set_area)
484 set_m=1;
485 else
488
490 return opoly;
491
492 for (i = 0; i < ipoly->
nrings; i++)
493 {
495
497 {
499 return NULL;
500 }
501
502 avoid_collapse=0;
503 }
504
505
507
509 return NULL;
510
511 return opoly;
512
513}
static POINTARRAY * ptarray_set_effective_area(POINTARRAY *inpts, int avoid_collaps, int set_area, double trshld)
int lwpoly_add_ring(LWPOLY *poly, POINTARRAY *pa)
Add a ring, allocating extra space if necessary.
#define FLAGS_GET_Z(flags)
#define FLAGS_GET_M(flags)
LWPOLY * lwpoly_construct_empty(int32_t srid, char hasz, char hasm)
int lwpoly_is_empty(const LWPOLY *poly)
#define LWDEBUG(level, msg)
References LWPOLY::flags, FLAGS_GET_M, FLAGS_GET_Z, LW_FAILURE, LWDEBUG, lwpoly_add_ring(), lwpoly_construct_empty(), lwpoly_is_empty(), POINTARRAY::npoints, LWPOLY::nrings, ptarray_set_effective_area(), LWPOLY::rings, LWPOLY::srid, and LWPOLY::type.
Referenced by lwgeom_set_effective_area().