1742{
1743 size_t prefixlen = strlen(prefix);
1744 size_t size = sizeof( "<MultiCurve></MultiCurve>" ) + 2 * prefixlen;
1745 if (srs) size += strlen(srs) + sizeof(" srsName=..");
1746 if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1748 uint32_t i;
1749
1750 for( i = 0; i <
cur->ngeoms; ++i )
1751 {
1752 size += sizeof( "<curveMember></curveMember>" ) + 2 * prefixlen;
1753 subgeom =
cur->geoms[i];
1755 {
1757 }
1759 {
1761 }
1763 {
1765 }
1766 }
1767 return size;
1768}
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_circstring_size(const LWCIRCSTRING *circ, const char *srs, int precision, int opts, const char *prefix, const char *id)
static size_t asgml3_compound_size(const LWCOMPOUND *col, const char *srs, int precision, int opts, const char *prefix, const char *id)