Definition at line 311 of file lwpoly.c.
312{
314 uint32_t i;
315
317 for (i=0; i<poly->
nrings; i++)
318 {
320 if ( ! newrings[i] )
321 {
322 uint32_t j = 0;
323 for (j = 0; j < i; j++)
326 return NULL;
327 }
328 }
331}
void * lwalloc(size_t size)
POINTARRAY * ptarray_segmentize2d(const POINTARRAY *ipa, double dist)
Returns a modified POINTARRAY so that no segment is longer than the given distance (computed using 2d...
void ptarray_free(POINTARRAY *pa)
LWPOLY * lwpoly_construct(int32_t srid, GBOX *bbox, uint32_t nrings, POINTARRAY **points)
References lwalloc(), lwfree(), lwpoly_construct(), LWPOLY::nrings, ptarray_free(), ptarray_segmentize2d(), LWPOLY::rings, and LWPOLY::srid.
Referenced by lwgeom_segmentize2d().