Definition at line 360 of file lwpoly.c.
365 int srid = shell->
srid;
369 lwerror(
"lwpoly_from_lwlines: shell must have at least 4 points");
371 lwerror(
"lwpoly_from_lwlines: shell must be closed");
374 for (nrings=1; nrings<=nholes; nrings++)
376 const LWLINE *hole = holes[nrings-1];
378 if ( hole->
srid != srid )
379 lwerror(
"lwpoly_from_lwlines: mixed SRIDs in input lines");
382 lwerror(
"lwpoly_from_lwlines: holes must have at least 4 points");
384 lwerror(
"lwpoly_from_lwlines: holes must be closed");
POINTARRAY * ptarray_clone_deep(const POINTARRAY *ptarray)
Deep clone a pointarray (also clones serialized pointlist)
void * lwalloc(size_t size)
int ptarray_is_closed_2d(const POINTARRAY *pa)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
LWPOLY * lwpoly_construct(int srid, GBOX *bbox, uint32_t nrings, POINTARRAY **points)
References lwalloc(), lwerror(), lwpoly_construct(), POINTARRAY::npoints, LWLINE::points, ptarray_clone_deep(), ptarray_is_closed_2d(), and LWLINE::srid.
Referenced by lwgeom_force_sfs(), and LWGEOM_makepoly().