Definition at line 1192 of file lwout_gml.c.
1194 size_t prefixlen = strlen(prefix);
1196 size_t size =
sizeof(
"<Polygon></Polygon" ) + 2 * prefixlen;
1197 if (srs) size += strlen(srs) +
sizeof(
" srsName=..");
1198 if (
id) size += strlen(
id) + strlen(prefix) +
sizeof(
" id=..");
1201 for( i = 0; i < poly->
nrings; ++i )
1205 size +=
sizeof(
"<exterior></exterior>" ) + 2 * prefixlen;
1209 size +=
sizeof(
"<interior></interior>" ) + 2 * prefixlen;
1211 subgeom = poly->
rings[i];
1215 size +=
sizeof(
"<LinearRing></LinearRing>") + 2 * prefixlen;
1216 size +=
sizeof(
"<posList></posList") + 2 * prefixlen;
1219 size +=
sizeof(
" srsDimension='x'");
1225 size +=
sizeof(
"<Ring></Ring>") + 2 * prefixlen;
1226 size +=
sizeof(
"<CurveMember></CurveMember>") + 2 * prefixlen;
1231 size +=
sizeof(
"<Ring></Ring>") + 2 * prefixlen;
1232 size +=
sizeof(
"<curveMember></curveMember>") + 2 * prefixlen;
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 pointArray_GMLsize(POINTARRAY *pa, int precision)
static size_t asgml3_compound_size(const LWCOMPOUND *col, const char *srs, int precision, int opts, const char *prefix, const char *id)
References asgml3_circstring_size(), asgml3_compound_size(), CIRCSTRINGTYPE, COMPOUNDTYPE, IS_DIMS, LINETYPE, LWCURVEPOLY::nrings, ovdump::opts, pointArray_GMLsize(), precision, LWCURVEPOLY::rings, and LWGEOM::type.
Referenced by asgml3_curvepoly(), and asgml3_multisurface_size().