1414 size_t prefixlen = strlen(prefix);
1418 size =
sizeof(
"<MultiLineString></MultiLineString>") + prefixlen*2;
1420 if (srs) size += strlen(srs) +
sizeof(
" srsName=..");
1421 if (
id) size += strlen(
id) + strlen(prefix) +
sizeof(
" id=..");
1423 for (i=0; i<col->
ngeoms; i++)
1425 subgeom = col->
geoms[i];
1428 size += (
sizeof(
"<pointMember>/") + prefixlen ) * 2;
1433 size += (
sizeof(
"<curveMember>/") + prefixlen ) * 2;
1438 size += (
sizeof(
"<surfaceMember>/") + prefixlen ) * 2;
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_line_size(const LWLINE *line, 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)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.