Definition at line 1258 of file lwout_gml.c.
References asgml3_circstring_buf(), asgml3_compound_buf(), CIRCSTRINGTYPE, COMPOUNDTYPE, LWCURVEPOLY::flags, FLAGS_GET_Z, IS_DIMS, LINETYPE, LWCURVEPOLY::nrings, pointArray_toGML3(), LWCURVEPOLY::rings, and LWGEOM::type.
Referenced by asgml3_curvepoly(), and asgml3_multisurface_buf().
1270 ptr += sprintf( ptr,
"<%sPolygon", prefix );
1273 ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
1277 ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id );
1279 ptr += sprintf(ptr,
">");
1281 for( i = 0; i < poly->
nrings; ++i )
1285 ptr += sprintf( ptr,
"<%sexterior>", prefix);
1289 ptr += sprintf( ptr,
"<%sinterior>", prefix);
1292 subgeom = poly->
rings[i];
1295 ptr += sprintf( ptr,
"<%sLinearRing>", prefix );
1296 ptr += sprintf( ptr,
"<%sposList", prefix );
1299 ptr += sprintf(ptr,
" srsDimension=\"%d\"", dimension);
1301 ptr += sprintf( ptr,
">" );
1303 ptr += sprintf( ptr,
"</%sposList>", prefix );
1304 ptr += sprintf( ptr,
"</%sLinearRing>", prefix );
1308 ptr += sprintf( ptr,
"<%sRing>", prefix );
1309 ptr += sprintf( ptr,
"<%scurveMember>", prefix );
1311 ptr += sprintf( ptr,
"</%scurveMember>", prefix );
1312 ptr += sprintf( ptr,
"</%sRing>", prefix );
1316 ptr += sprintf( ptr,
"<%sRing>", prefix );
1317 ptr += sprintf( ptr,
"<%scurveMember>", prefix );
1319 ptr += sprintf( ptr,
"</%scurveMember>", prefix );
1320 ptr += sprintf( ptr,
"</%sRing>", prefix );
1325 ptr += sprintf( ptr,
"</%sexterior>", prefix);
1329 ptr += sprintf( ptr,
"</%sinterior>", prefix);
1333 ptr += sprintf( ptr,
"</%sPolygon>", prefix );
1334 return (ptr - output);
static size_t asgml3_compound_buf(const LWCOMPOUND *col, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
static size_t asgml3_circstring_buf(const LWCIRCSTRING *circ, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
static size_t pointArray_toGML3(POINTARRAY *pa, char *buf, int precision, int opts)