VERSION GML 2 takes a GEOMETRY and returns a GML2 representation.
Definition at line 231 of file lwout_gml.c.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define POLYHEDRALSURFACETYPE
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static char * asgml2_collection(const LWCOLLECTION *col, const char *srs, int precision, const char *prefix)
static char * asgml2_line(const LWLINE *line, const char *srs, int precision, const char *prefix)
static char * asgml2_point(const LWPOINT *point, const char *srs, int precision, const char *prefix)
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)
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, precision, TINTYPE, TRIANGLETYPE, LWGEOM::type, and ovdump::type.
Referenced by do_gml2_test(), do_gml2_test_prefix(), do_gml2_unsupported(), geography_as_gml(), and LWGEOM_asGML().