Definition at line 1014 of file lwout_gml.c.
1023 ptr += sprintf(ptr,
"<%sPolygonPatch", prefix);
1028 ptr += sprintf(ptr,
"<%sPolygon", prefix);
1031 if (srs) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
1032 if (
id) ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id);
1036 ptr += sprintf(ptr,
"/>");
1037 return (ptr-output);
1039 ptr += sprintf(ptr,
">");
1041 ptr += sprintf(ptr,
"<%sexterior><%sLinearRing>", prefix, prefix);
1042 if (
IS_DIMS(
opts)) ptr += sprintf(ptr,
"<%sposList srsDimension=\"%d\">", prefix, dimension);
1043 else ptr += sprintf(ptr,
"<%sposList>", prefix);
1046 ptr += sprintf(ptr,
"</%sposList></%sLinearRing></%sexterior>",
1047 prefix, prefix, prefix);
1048 for (i=1; i<poly->
nrings; i++)
1050 ptr += sprintf(ptr,
"<%sinterior><%sLinearRing>", prefix, prefix);
1051 if (
IS_DIMS(
opts)) ptr += sprintf(ptr,
"<%sposList srsDimension=\"%d\">", prefix, dimension);
1052 else ptr += sprintf(ptr,
"<%sposList>", prefix);
1054 ptr += sprintf(ptr,
"</%sposList></%sLinearRing></%sinterior>",
1055 prefix, prefix, prefix);
1057 if (is_patch) ptr += sprintf(ptr,
"</%sPolygonPatch>", prefix);
1058 else ptr += sprintf(ptr,
"</%sPolygon>", prefix);
1060 return (ptr-output);
#define FLAGS_GET_Z(flags)
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().