157 for ( i = 0; i < poly->
nrings; i++ )
161 rv =
stringbuffer_aprintf(sb,
"<%sinnerBoundaryIs><%sLinearRing><%scoordinates>", prefix, prefix, prefix);
163 rv =
stringbuffer_aprintf(sb,
"<%souterBoundaryIs><%sLinearRing><%scoordinates>", prefix, prefix, prefix);
171 rv =
stringbuffer_aprintf(sb,
"</%scoordinates></%sLinearRing></%sinnerBoundaryIs>", prefix, prefix, prefix);
173 rv =
stringbuffer_aprintf(sb,
"</%scoordinates></%sLinearRing></%souterBoundaryIs>", prefix, prefix, prefix);
static int ptarray_to_kml2_sb(const POINTARRAY *pa, int precision, stringbuffer_t *sb)
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.