3097{
3100 LWGEOM *lwgeom_in, *lwgeom_out;
3101 double tolerance = 0.0;
3102 int flags = 0;
3103
3104 geom = PG_GETARG_GSERIALIZED_P(0);
3105 tolerance = PG_GETARG_FLOAT8(1);
3106 flags = PG_GETARG_INT32(2);
3107
3111
3112 if ( ! lwgeom_out )
3113 {
3114 PG_FREE_IF_COPY(geom, 0);
3115 PG_RETURN_NULL();
3116 }
3117
3120
3121 PG_FREE_IF_COPY(geom, 0);
3122 PG_RETURN_POINTER(result);
3123}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_delaunay_triangulation(const LWGEOM *geom, double tolerance, int32_t edgeOnly)
Take vertices of a geometry and build a delaunay triangulation on them.
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)