VERSION GML 2 takes a GEOMETRY and returns a GML2 representation.
Definition at line 231 of file lwout_gml.c.
232{
234
235
237 return NULL;
238
239 switch (type)
240 {
243
246
249
254
257
261 lwerror(
"Cannot convert %s to GML2. Try ST_AsGML(3, <geometry>) to generate GML3.",
lwtype_name(type));
262 return NULL;
263
264 default:
266 return NULL;
267 }
268}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define POLYHEDRALSURFACETYPE
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static 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_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, and LWGEOM::type.
Referenced by do_gml2_test(), do_gml2_test_prefix(), do_gml2_unsupported(), geography_as_gml(), and LWGEOM_asGML().