Definition at line 359 of file lwpoly.c.
364 int32_t srid = shell->
srid;
368 lwerror(
"lwpoly_from_lwlines: shell must have at least 4 points");
370 lwerror(
"lwpoly_from_lwlines: shell must be closed");
373 for (nrings=1; nrings<=nholes; nrings++)
375 const LWLINE *hole = holes[nrings-1];
377 if ( hole->
srid != srid )
378 lwerror(
"lwpoly_from_lwlines: mixed SRIDs in input lines");
381 lwerror(
"lwpoly_from_lwlines: holes must have at least 4 points");
383 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 void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
LWPOLY * lwpoly_construct(int32_t 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 _lwt_SnapEdge_checkMotion(), lwgeom_force_sfs(), and LWGEOM_makepoly().