620 ptr += sprintf(ptr,
"<%sMultiGeometry", prefix);
621 if ( srs ) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
625 ptr += sprintf(ptr,
"/>");
628 ptr += sprintf(ptr,
">");
630 for (i=0; i<col->
ngeoms; i++)
632 subgeom = col->
geoms[i];
634 ptr += sprintf(ptr,
"<%sgeometryMember>", prefix);
654 ptr += sprintf(ptr,
"</%sgeometryMember>", prefix);
658 ptr += sprintf(ptr,
"</%sMultiGeometry>", prefix);
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
static size_t asgml2_poly_buf(const LWPOLY *poly, const char *srs, char *output, int precision, const char *prefix)
static size_t asgml2_multi_buf(const LWCOLLECTION *col, const char *srs, char *output, int precision, const char *prefix)
static size_t asgml2_point_buf(const LWPOINT *point, const char *srs, char *output, int precision, const char *prefix)
static size_t asgml2_line_buf(const LWLINE *line, const char *srs, char *output, int precision, const char *prefix)
static size_t asgml2_collection_buf(const LWCOLLECTION *col, const char *srs, char *output, int precision, const char *prefix)