PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ asgml3_tin_buf()

static size_t asgml3_tin_buf ( const LWTIN tin,
const char *  srs,
char *  output,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1590 of file lwout_gml.c.

1591{
1592 char *ptr;
1593 uint32_t i;
1594
1595 ptr = output;
1596
1597 /* Open outmost tag */
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 {
1605 ptr += asgml3_triangle_buf(tin->geoms[i], 0, ptr, precision,
1606 opts, prefix, id);
1607 }
1608
1609 /* Close outmost tag */
1610 ptr += sprintf(ptr, "</%strianglePatches></%sTin>", prefix, prefix);
1611
1612 return (ptr-output);
1613}
static uint8_t precision
Definition cu_in_twkb.c:25
static size_t asgml3_triangle_buf(const LWTRIANGLE *triangle, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
Definition lwout_gml.c:1347
uint32_t ngeoms
Definition liblwgeom.h:650
LWTRIANGLE ** geoms
Definition liblwgeom.h:645

References asgml3_triangle_buf(), LWTIN::geoms, LWTIN::ngeoms, and precision.

Referenced by asgml3_tin().

Here is the call graph for this function:
Here is the caller graph for this function: