PostGIS  2.2.8dev-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 1574 of file lwout_gml.c.

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

Referenced by asgml3_tin().

1575 {
1576  int i;
1577  size_t size;
1578  size_t prefixlen = strlen(prefix);
1579 
1580  size = (sizeof("<Tin><trianglePatches>/") + prefixlen*2) * 2;
1581  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1582  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1583 
1584  for (i=0; i<tin->ngeoms; i++)
1585  {
1586  size += asgml3_triangle_size(tin->geoms[i], 0, precision, opts, prefix, id);
1587  }
1588 
1589  return size;
1590 }
int ngeoms
Definition: liblwgeom.h:569
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:1337
LWTRIANGLE ** geoms
Definition: liblwgeom.h:571
uint8_t precision
Definition: cu_in_twkb.c:25
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: