Definition at line 1015 of file lwout_gml.c.
1024 ptr += sprintf(ptr,
"<%sPolygonPatch", prefix);
1029 ptr += sprintf(ptr,
"<%sPolygon", prefix);
1032 if (srs) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
1033 if (
id) ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id);
1037 ptr += sprintf(ptr,
"/>");
1038 return (ptr-output);
1040 ptr += sprintf(ptr,
">");
1042 ptr += sprintf(ptr,
"<%sexterior><%sLinearRing>", prefix, prefix);
1043 if (
IS_DIMS(
opts)) ptr += sprintf(ptr,
"<%sposList srsDimension=\"%d\">", prefix, dimension);
1044 else ptr += sprintf(ptr,
"<%sposList>", prefix);
1047 ptr += sprintf(ptr,
"</%sposList></%sLinearRing></%sexterior>",
1048 prefix, prefix, prefix);
1049 for (i=1; i<poly->
nrings; i++)
1051 ptr += sprintf(ptr,
"<%sinterior><%sLinearRing>", prefix, prefix);
1052 if (
IS_DIMS(
opts)) ptr += sprintf(ptr,
"<%sposList srsDimension=\"%d\">", prefix, dimension);
1053 else ptr += sprintf(ptr,
"<%sposList>", prefix);
1055 ptr += sprintf(ptr,
"</%sposList></%sLinearRing></%sinterior>",
1056 prefix, prefix, prefix);
1058 if (is_patch) ptr += sprintf(ptr,
"</%sPolygonPatch>", prefix);
1059 else ptr += sprintf(ptr,
"</%sPolygon>", prefix);
1061 return (ptr-output);
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
int lwpoly_is_empty(const LWPOLY *poly)
static size_t pointArray_toGML3(POINTARRAY *pa, char *buf, int precision, int opts)
References LWPOLY::flags, FLAGS_GET_Z, IS_DIMS, lwpoly_is_empty(), LWPOLY::nrings, ovdump::opts, pointArray_toGML3(), precision, and LWPOLY::rings.
Referenced by asgml3_collection_buf(), asgml3_multi_buf(), asgml3_multisurface_buf(), asgml3_poly(), and asgml3_psurface_buf().