Definition at line 1450 of file lwout_gml.c.
References asgml3_line_buf(), asgml3_point_buf(), asgml3_poly_buf(), LWCOLLECTION::geoms, LINETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, POINTTYPE, POLYGONTYPE, ovdump::type, LWGEOM::type, and LWCOLLECTION::type.
Referenced by asgml3_collection_buf(), and asgml3_multi().
1453 char *ptr, *gmltype;
1465 ptr += sprintf(ptr,
"<%s%s", prefix, gmltype);
1466 if (srs) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
1467 if (
id) ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id);
1471 ptr += sprintf(ptr,
"/>");
1472 return (ptr-output);
1474 ptr += sprintf(ptr,
">");
1476 for (i=0; i<col->
ngeoms; i++)
1478 subgeom = col->
geoms[i];
1481 ptr += sprintf(ptr,
"<%spointMember>", prefix);
1483 ptr += sprintf(ptr,
"</%spointMember>", prefix);
1487 ptr += sprintf(ptr,
"<%scurveMember>", prefix);
1489 ptr += sprintf(ptr,
"</%scurveMember>", prefix);
1493 ptr += sprintf(ptr,
"<%ssurfaceMember>", prefix);
1495 ptr += sprintf(ptr,
"</%ssurfaceMember>", prefix);
1500 ptr += sprintf(ptr,
"</%s%s>", prefix, gmltype);
1502 return (ptr-output);
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)
#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)