Definition at line 1761 of file lwout_gml.c.
References asgml3_circstring_size(), asgml3_compound_size(), asgml3_line_size(), CIRCSTRINGTYPE, COMPOUNDTYPE, LWMCURVE::geoms, LINETYPE, LWMCURVE::ngeoms, and LWGEOM::type.
Referenced by asgml3_multicurve().
1763 size_t prefixlen = strlen(prefix);
1764 size_t size =
sizeof(
"<MultiCurve></MultiCurve>" ) + 2 * prefixlen;
1765 if (srs) size += strlen(srs) +
sizeof(
" srsName=..");
1766 if (
id) size += strlen(
id) + strlen(prefix) +
sizeof(
" id=..");
1770 for( i = 0; i < cur->
ngeoms; ++i )
1772 size +=
sizeof(
"<curveMember></curveMember>" ) + 2 * prefixlen;
1773 subgeom = cur->
geoms[i];
static size_t asgml3_compound_size(const LWCOMPOUND *col, 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_circstring_size(const LWCIRCSTRING *circ, const char *srs, int precision, int opts, const char *prefix, const char *id)