Definition at line 1430 of file lwout_gml.c.
1433 char *ptr, *gmltype;
1445 ptr += sprintf(ptr,
"<%s%s", prefix, gmltype);
1446 if (srs) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
1447 if (
id) ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id);
1451 ptr += sprintf(ptr,
"/>");
1452 return (ptr-output);
1454 ptr += sprintf(ptr,
">");
1456 for (i=0; i<col->
ngeoms; i++)
1458 subgeom = col->
geoms[i];
1461 ptr += sprintf(ptr,
"<%spointMember>", prefix);
1463 ptr += sprintf(ptr,
"</%spointMember>", prefix);
1467 ptr += sprintf(ptr,
"<%scurveMember>", prefix);
1469 ptr += sprintf(ptr,
"</%scurveMember>", prefix);
1473 ptr += sprintf(ptr,
"<%ssurfaceMember>", prefix);
1475 ptr += sprintf(ptr,
"</%ssurfaceMember>", prefix);
1480 ptr += sprintf(ptr,
"</%s%s>", prefix, gmltype);
1482 return (ptr-output);
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static size_t asgml3_line_buf(const LWLINE *line, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
static size_t asgml3_point_buf(const LWPOINT *point, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
static size_t asgml3_poly_buf(const LWPOLY *poly, const char *srs, char *output, int precision, int opts, int is_patch, const char *prefix, const char *id)
References asgml3_line_buf(), asgml3_point_buf(), asgml3_poly_buf(), LWCOLLECTION::geoms, LINETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, ovdump::opts, POINTTYPE, POLYGONTYPE, precision, LWGEOM::type, LWCOLLECTION::type, and ovdump::type.
Referenced by asgml3_collection_buf(), and asgml3_multi().