VERSION GML 2 takes a GEOMETRY and returns a GML2 representation.
Definition at line 231 of file lwout_gml.c.
References asgml2_collection(), asgml2_line(), asgml2_multi(), asgml2_point(), asgml2_poly(), COLLECTIONTYPE, LINETYPE, lwerror(), lwgeom_is_empty(), lwtype_name(), MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, POINTTYPE, POLYGONTYPE, POLYHEDRALSURFACETYPE, TINTYPE, TRIANGLETYPE, ovdump::type, and LWGEOM::type.
Referenced by do_gml2_test(), do_gml2_test_prefix(), do_gml2_unsupported(), geography_as_gml(), and LWGEOM_asGML().
261 lwerror(
"Cannot convert %s to GML2. Try ST_AsGML(3, <geometry>) to generate GML3.",
lwtype_name(type));
static char * asgml2_line(const LWLINE *line, const char *srs, int precision, const char *prefix)
#define POLYHEDRALSURFACETYPE
static char * asgml2_collection(const LWCOLLECTION *col, const char *srs, int precision, const char *prefix)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
static char * asgml2_point(const LWPOINT *point, const char *srs, int precision, const char *prefix)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
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 * asgml2_multi(const LWCOLLECTION *col, const char *srs, int precision, const char *prefix)
static char * asgml2_poly(const LWPOLY *poly, const char *srs, int precision, const char *prefix)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.