388 ptr += sprintf(ptr,
"<%sPolygon", prefix);
389 if ( srs ) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
392 ptr += sprintf(ptr,
"/>");
395 ptr += sprintf(ptr,
">");
396 ptr += sprintf(ptr,
"<%souterBoundaryIs><%sLinearRing><%scoordinates>",
397 prefix, prefix, prefix);
399 ptr += sprintf(ptr,
"</%scoordinates></%sLinearRing></%souterBoundaryIs>", prefix, prefix, prefix);
400 for (i=1; i<poly->
nrings; i++)
402 ptr += sprintf(ptr,
"<%sinnerBoundaryIs><%sLinearRing><%scoordinates>", prefix, prefix, prefix);
404 ptr += sprintf(ptr,
"</%scoordinates></%sLinearRing></%sinnerBoundaryIs>", prefix, prefix, prefix);
406 ptr += sprintf(ptr,
"</%sPolygon>", prefix);
int lwpoly_is_empty(const LWPOLY *poly)
static size_t pointArray_toGML2(POINTARRAY *pa, char *buf, int precision)