PostGIS  2.5.0dev-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.

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

Referenced by asgml3_tin().

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 }
unsigned int uint32_t
Definition: uthash.h:78
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
LWTRIANGLE ** geoms
Definition: liblwgeom.h:589
uint8_t precision
Definition: cu_in_twkb.c:25
uint32_t ngeoms
Definition: liblwgeom.h:587
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: