Definition at line 323 of file lwpoly.c.
References lwalloc(), lwfree(), lwpoly_construct(), LWPOLY::nrings, ptarray_free(), ptarray_segmentize2d(), LWPOLY::rings, and LWPOLY::srid.
Referenced by lwgeom_segmentize2d().
329 for (i=0; i<poly->nrings; i++)
332 if ( ! newrings[i] ) {
339 poly->nrings, newrings);
void ptarray_free(POINTARRAY *pa)
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...
LWPOLY * lwpoly_construct(int srid, GBOX *bbox, uint32_t nrings, POINTARRAY **points)
void * lwalloc(size_t size)