PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ asgml3_tin_size()

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

Definition at line 1577 of file lwout_gml.c.

1578 {
1579  uint32_t i;
1580  size_t size;
1581  size_t prefixlen = strlen(prefix);
1582 
1583  size = (sizeof("<Tin><trianglePatches>/") + prefixlen*2) * 2;
1584  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1585  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1586 
1587  for (i=0; i<tin->ngeoms; i++)
1588  {
1589  size += asgml3_triangle_size(tin->geoms[i], 0, precision, opts, prefix, id);
1590  }
1591 
1592  return size;
1593 }
static uint8_t precision
Definition: cu_in_twkb.c:25
static size_t asgml3_triangle_size(const LWTRIANGLE *triangle, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:1341
opts
Definition: ovdump.py:45
uint32_t ngeoms
Definition: liblwgeom.h:679
LWTRIANGLE ** geoms
Definition: liblwgeom.h:674

References asgml3_triangle_size(), 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: