1591{
1592 char *ptr;
1593 uint32_t i;
1594
1595 ptr = output;
1596
1597
1598 ptr += sprintf(ptr, "<%sTin", prefix);
1599 if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1600 if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1601 else ptr += sprintf(ptr, "><%strianglePatches>", prefix);
1602
1603 for (i=0; i<tin->
ngeoms; i++)
1604 {
1606 opts, prefix, id);
1607 }
1608
1609
1610 ptr += sprintf(ptr, "</%strianglePatches></%sTin>", prefix, prefix);
1611
1612 return (ptr-output);
1613}
static size_t asgml3_triangle_buf(const LWTRIANGLE *triangle, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)