PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ 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 1600 of file lwout_gml.c.

1601 {
1602  char *ptr;
1603  uint32_t i;
1604 
1605  ptr = output;
1606 
1607  /* Open outmost tag */
1608  ptr += sprintf(ptr, "<%sTin", prefix);
1609  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1610  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1611  else ptr += sprintf(ptr, "><%strianglePatches>", prefix);
1612 
1613  for (i=0; i<tin->ngeoms; i++)
1614  {
1615  ptr += asgml3_triangle_buf(tin->geoms[i], 0, ptr, precision,
1616  opts, prefix, id);
1617  }
1618 
1619  /* Close outmost tag */
1620  ptr += sprintf(ptr, "</%strianglePatches></%sTin>", prefix, prefix);
1621 
1622  return (ptr-output);
1623 }
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:1358
opts
Definition: ovdump.py:45
uint32_t ngeoms
Definition: liblwgeom.h:679
LWTRIANGLE ** geoms
Definition: liblwgeom.h:674

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

Referenced by asgml3_tin().

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