1771{
1772 char* ptr = output;
1774 uint32_t i;
1775
1776 ptr += sprintf(ptr, "<%sMultiCurve", prefix );
1777 if (srs)
1778 {
1779 ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1780 }
1781 if (id)
1782 {
1783 ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id );
1784 }
1785 ptr += sprintf( ptr, ">");
1786
1787 for( i = 0; i <
cur->ngeoms; ++i )
1788 {
1789 ptr += sprintf(ptr, "<%scurveMember>", prefix );
1790 subgeom =
cur->geoms[i];
1792 {
1794 }
1796 {
1798 }
1800 {
1802 }
1803 ptr += sprintf(ptr, "</%scurveMember>", prefix );
1804 }
1805 ptr += sprintf(ptr, "</%sMultiCurve>", prefix );
1806 return (ptr - output);
1807}
static size_t asgml3_circstring_buf(const LWCIRCSTRING *circ, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
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_line_buf(const LWLINE *line, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)