PostGIS  2.5.7dev-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 1591 of file lwout_gml.c.

1592 {
1593  char *ptr;
1594  uint32_t i;
1595 
1596  ptr = output;
1597 
1598  /* Open outmost tag */
1599  ptr += sprintf(ptr, "<%sTin", prefix);
1600  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1601  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1602  else ptr += sprintf(ptr, "><%strianglePatches>", prefix);
1603 
1604  for (i=0; i<tin->ngeoms; i++)
1605  {
1606  ptr += asgml3_triangle_buf(tin->geoms[i], 0, ptr, precision,
1607  opts, prefix, id);
1608  }
1609 
1610  /* Close outmost tag */
1611  ptr += sprintf(ptr, "</%strianglePatches></%sTin>", prefix, prefix);
1612 
1613  return (ptr-output);
1614 }
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:1348
opts
Definition: ovdump.py:44
uint32_t ngeoms
Definition: liblwgeom.h:588
LWTRIANGLE ** geoms
Definition: liblwgeom.h:590
unsigned int uint32_t
Definition: uthash.h:78

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: