103 double tol = PG_GETARG_FLOAT8(1);
104 int toltype = PG_GETARG_INT32(2);
105 int flags = PG_GETARG_INT32(3);
107 LWGEOM *igeom = NULL, *ogeom = NULL;
109 POSTGIS_DEBUG(2,
"ST_CurveToLine called.");
111 POSTGIS_DEBUGF(3,
"tol = %g, typ = %d, flg = %d", tol, toltype, flags);
120 ret = geometry_serialize(ogeom);
122 PG_FREE_IF_COPY(geom, 0);
123 PG_RETURN_POINTER(ret);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwcurve_linearize(const LWGEOM *geom, double tol, LW_LINEARIZE_TOLERANCE_TYPE type, int flags)