Definition at line 1211 of file lwout_gml.c.
References asgml3_circstring_size(), asgml3_compound_size(), CIRCSTRINGTYPE, COMPOUNDTYPE, IS_DIMS, LINETYPE, LWCURVEPOLY::nrings, pointArray_GMLsize(), LWCURVEPOLY::rings, and LWGEOM::type.
Referenced by asgml3_curvepoly(), and asgml3_multisurface_size().
1213 size_t prefixlen = strlen(prefix);
1215 size_t size =
sizeof(
"<Polygon></Polygon" ) + 2 * prefixlen;
1216 if (srs) size += strlen(srs) +
sizeof(
" srsName=..");
1217 if (
id) size += strlen(
id) + strlen(prefix) +
sizeof(
" id=..");
1220 for( i = 0; i < poly->
nrings; ++i )
1224 size +=
sizeof(
"<exterior></exterior>" ) + 2 * prefixlen;
1228 size +=
sizeof(
"<interior></interior>" ) + 2 * prefixlen;
1230 subgeom = poly->
rings[i];
1234 size +=
sizeof(
"<LinearRing></LinearRing>") + 2 * prefixlen;
1235 size +=
sizeof(
"<posList></posList") + 2 * prefixlen;
1238 size +=
sizeof(
" srsDimension='x'");
1244 size +=
sizeof(
"<Ring></Ring>") + 2 * prefixlen;
1245 size +=
sizeof(
"<CurveMember></CurveMember>") + 2 * prefixlen;
1250 size +=
sizeof(
"<Ring></Ring>") + 2 * prefixlen;
1251 size +=
sizeof(
"<curveMember></curveMember>") + 2 * prefixlen;
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 pointArray_GMLsize(POINTARRAY *pa, int precision)
static size_t asgml3_circstring_size(const LWCIRCSTRING *circ, const char *srs, int precision, int opts, const char *prefix, const char *id)