101{
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;
108
109 POSTGIS_DEBUG(2, "ST_CurveToLine called.");
110
111 POSTGIS_DEBUGF(3, "tol = %g, typ = %d, flg = %d", tol, toltype, flags);
112
116
117 if (ogeom == NULL)
118 PG_RETURN_NULL();
119
120 ret = geometry_serialize(ogeom);
122 PG_FREE_IF_COPY(geom, 0);
123 PG_RETURN_POINTER(ret);
124}
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)