2269{
2270#if POSTGIS_GEOS_VERSION < 31100
2271
2272 lwpgerror("The GEOS version this PostGIS binary "
2273 "was compiled against (%d) doesn't support "
2274 "'GEOSConstrainedDelaunayTriangulation' function (3.11.0+ required)",
2276 PG_RETURN_NULL();
2277
2278#else
2284
2285 if (!lwgeom_out)
2286 {
2287 PG_FREE_IF_COPY(geom, 0);
2288 PG_RETURN_NULL();
2289 }
2290
2291 result = geometry_serialize(lwgeom_out);
2293
2294 PG_FREE_IF_COPY(geom, 0);
2295 PG_RETURN_POINTER(
result);
2296#endif
2297}
char result[OUT_DOUBLE_BUFFER_SIZE]
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_triangulate_polygon(const LWGEOM *geom)
Take vertices of a polygon and build a constrained triangulation that respects the boundary of the po...
#define POSTGIS_GEOS_VERSION