Definition at line 1431 of file lwout_gml.c.
1434 char *ptr, *gmltype;
1446 ptr += sprintf(ptr,
"<%s%s", prefix, gmltype);
1447 if (srs) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
1448 if (
id) ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id);
1452 ptr += sprintf(ptr,
"/>");
1453 return (ptr-output);
1455 ptr += sprintf(ptr,
">");
1457 for (i=0; i<col->
ngeoms; i++)
1459 subgeom = col->
geoms[i];
1462 ptr += sprintf(ptr,
"<%spointMember>", prefix);
1464 ptr += sprintf(ptr,
"</%spointMember>", prefix);
1468 ptr += sprintf(ptr,
"<%scurveMember>", prefix);
1470 ptr += sprintf(ptr,
"</%scurveMember>", prefix);
1474 ptr += sprintf(ptr,
"<%ssurfaceMember>", prefix);
1476 ptr += sprintf(ptr,
"</%ssurfaceMember>", prefix);
1481 ptr += sprintf(ptr,
"</%s%s>", prefix, gmltype);
1483 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().