Takes a GEOMETRY and returns a SVG representation.
Definition at line 56 of file lwout_svg.c.
References assvg_collection(), assvg_line(), assvg_multiline(), assvg_multipoint(), assvg_multipolygon(), assvg_point(), assvg_polygon(), COLLECTIONTYPE, LINETYPE, lwalloc(), lwerror(), lwgeom_is_empty(), lwtype_name(), MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, POINTTYPE, POLYGONTYPE, ovdump::type, and LWGEOM::type.
Referenced by do_svg_test(), do_svg_unsupported(), geography_as_svg(), and LWGEOM_asSVG().
94 lwerror(
"lwgeom_to_svg: '%s' geometry type not supported",
static char * assvg_multipoint(const LWMPOINT *mpoint, int relative, int precision)
static char * assvg_multiline(const LWMLINE *mline, int relative, int precision)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
static char * assvg_multipolygon(const LWMPOLY *mpoly, int relative, int precision)
static char * assvg_collection(const LWCOLLECTION *col, int relative, int precision)
static char * assvg_line(const LWLINE *line, int relative, int precision)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static char * assvg_point(const LWPOINT *point, int relative, int precision)
void * lwalloc(size_t size)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
static char * assvg_polygon(const LWPOLY *poly, int relative, int precision)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.