1391{
1392 uint32_t i;
1393 size_t size;
1394 size_t prefixlen = strlen(prefix);
1396
1397
1398 size = sizeof("<MultiLineString></MultiLineString>") + prefixlen*2;
1399
1400 if (srs) size += strlen(srs) + sizeof(" srsName=..");
1401 if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1402
1403 for (i=0; i<col->
ngeoms; i++)
1404 {
1405 subgeom = col->
geoms[i];
1407 {
1408 size += ( sizeof("<pointMember>/") + prefixlen ) * 2;
1410 }
1412 {
1413 size += ( sizeof("<curveMember>/") + prefixlen ) * 2;
1415 }
1417 {
1418 size += ( sizeof("<surfaceMember>/") + prefixlen ) * 2;
1420 }
1421 }
1422
1423 return size;
1424}
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static size_t asgml3_poly_size(const LWPOLY *poly, const char *srs, int precision, int opts, const char *prefix, const char *id)
static size_t asgml3_point_size(const LWPOINT *point, const char *srs, int precision, int opts, const char *prefix, const char *id)
static size_t asgml3_line_size(const LWLINE *line, const char *srs, int precision, int opts, const char *prefix, const char *id)