309{
312 int relative = 0;
314
315 if ( PG_ARGISNULL(0) ) PG_RETURN_NULL();
316
317 geom = PG_GETARG_GSERIALIZED_P(0);
318
319
320 if ( PG_NARGS() > 1 && ! PG_ARGISNULL(1) )
321 relative = PG_GETARG_INT32(1) ? 1:0;
322
323 if ( PG_NARGS() > 2 && ! PG_ARGISNULL(2) )
324 {
326 }
327
330}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
lwvarlena_t * lwgeom_to_svg(const LWGEOM *geom, int precision, int relative)
Takes a GEOMETRY and returns a SVG representation.
#define OUT_DEFAULT_DECIMAL_DIGITS