431{
432 uint32_t i;
433 size_t size;
434 size_t prefixlen = strlen(prefix);
436
437
438 size = sizeof("<MultiLineString></MultiLineString>");
439 size += 2*prefixlen;
440
441 if ( srs ) size += strlen(srs) + sizeof(" srsName=..");
442
443 for (i=0; i<col->
ngeoms; i++)
444 {
445 subgeom = col->
geoms[i];
447 {
448 size += ( sizeof("<pointMember>/") + prefixlen ) * 2;
450 }
452 {
453 size += ( sizeof("<lineStringMember>/") + prefixlen ) * 2;
455 }
457 {
458 size += ( sizeof("<polygonMember>/") + prefixlen ) * 2;
460 }
461 }
462
463 return size;
464}
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static size_t asgml2_point_size(const LWPOINT *point, const char *srs, int precision, const char *prefix)
static size_t asgml2_line_size(const LWLINE *line, const char *srs, int precision, const char *prefix)
static size_t asgml2_poly_size(const LWPOLY *poly, const char *srs, int precision, const char *prefix)