601 ptr += sprintf(ptr,
"<%sMultiGeometry", prefix);
602 if ( srs ) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
606 ptr += sprintf(ptr,
"/>");
609 ptr += sprintf(ptr,
">");
611 for (i=0; i<col->
ngeoms; i++)
613 subgeom = col->
geoms[i];
615 ptr += sprintf(ptr,
"<%sgeometryMember>", prefix);
635 ptr += sprintf(ptr,
"</%sgeometryMember>", prefix);
639 ptr += sprintf(ptr,
"</%sMultiGeometry>", prefix);
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
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_poly_buf(const LWPOLY *poly, const char *srs, char *output, int precision, const char *prefix)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static size_t asgml2_collection_buf(const LWCOLLECTION *col, 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)