PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ geography_as_svg()

Datum geography_as_svg ( PG_FUNCTION_ARGS  )

Definition at line 369 of file geography_inout.c.

370 {
371  GSERIALIZED *g = PG_GETARG_GSERIALIZED_P(0);
372  int relative = PG_GETARG_INT32(1) ? 1 : 0;
373  int precision = PG_GETARG_INT32(2);
374  LWGEOM *lwgeom = lwgeom_from_gserialized(g);
375 
376  if (precision < 0)
377  precision = 0;
378 
379  PG_RETURN_TEXT_P(lwgeom_to_svg(lwgeom, precision, relative));
380 }
static uint8_t precision
Definition: cu_in_twkb.c:25
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:239
lwvarlena_t * lwgeom_to_svg(const LWGEOM *geom, int precision, int relative)
Takes a GEOMETRY and returns a SVG representation.
Definition: lwout_svg.c:559

References lwgeom_from_gserialized(), lwgeom_to_svg(), and precision.

Here is the call graph for this function: