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

1569 {
1570  uint32_t i;
1571  size_t size;
1572  size_t prefixlen = strlen(prefix);
1573 
1574  size = (sizeof("<Tin><trianglePatches>/") + prefixlen*2) * 2;
1575  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1576  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1577 
1578  for (i=0; i<tin->ngeoms; i++)
1579  {
1580  size += asgml3_triangle_size(tin->geoms[i], 0, precision, opts, prefix, id);
1581  }
1582 
1583  return size;
1584 }
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:1331
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_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: