PostGIS  2.4.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 1610 of file lwout_gml.c.

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

Referenced by asgml3_tin().

1611 {
1612  char *ptr;
1613  int i;
1614 
1615  ptr = output;
1616 
1617  /* Open outmost tag */
1618  ptr += sprintf(ptr, "<%sTin", prefix);
1619  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1620  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1621  else ptr += sprintf(ptr, "><%strianglePatches>", prefix);
1622 
1623  for (i=0; i<tin->ngeoms; i++)
1624  {
1625  ptr += asgml3_triangle_buf(tin->geoms[i], 0, ptr, precision,
1626  opts, prefix, id);
1627  }
1628 
1629  /* Close outmost tag */
1630  ptr += sprintf(ptr, "</%strianglePatches></%sTin>", prefix, prefix);
1631 
1632  return (ptr-output);
1633 }
int ngeoms
Definition: liblwgeom.h:585
LWTRIANGLE ** geoms
Definition: liblwgeom.h:587
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:1367
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: