Definition at line 2811 of file lwgeom_topo.c.
References LWT_TOPOLOGY_T::hasZ, lwalloc(), lwcollection_as_lwgeom(), lwcollection_construct(), lwcollection_release(), LWDEBUG, LWDEBUGF, lwfree(), lwgeom_buildarea(), lwgeom_to_wkt(), lwline_as_lwgeom(), lwpoly_as_lwgeom(), lwpoly_construct_empty(), MULTILINETYPE, LWT_TOPOLOGY_T::srid, and WKT_EXTENDED.
Referenced by lwt_GetFaceEdges(), and lwt_GetFaceGeometry().
2816 int i, validedges = 0;
2818 for ( i=0; i<numfaceedges; ++i )
2832 if ( numfaceedges )
lwfree(geoms);
2833 LWDEBUG(1,
"_lwt_FaceByEdges returning empty polygon");
2850 LWDEBUGF(1,
"_lwt_FaceByEdges returning area: %s", wkt);
LWCOLLECTION * lwcollection_construct(uint8_t type, int srid, GBOX *bbox, uint32_t ngeoms, LWGEOM **geoms)
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
#define LWDEBUG(level, msg)
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
void lwcollection_release(LWCOLLECTION *lwcollection)
LWGEOM * lwgeom_buildarea(const LWGEOM *geom)
Take a geometry and return an areal geometry (Polygon or MultiPolygon).
LWPOLY * lwpoly_construct_empty(int srid, char hasz, char hasm)
void * lwalloc(size_t size)
#define LWDEBUGF(level, msg,...)
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)