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

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

Referenced by asgml3_tin().

1588 {
1589  int i;
1590  size_t size;
1591  size_t prefixlen = strlen(prefix);
1592 
1593  size = (sizeof("<Tin><trianglePatches>/") + prefixlen*2) * 2;
1594  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1595  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1596 
1597  for (i=0; i<tin->ngeoms; i++)
1598  {
1599  size += asgml3_triangle_size(tin->geoms[i], 0, precision, opts, prefix, id);
1600  }
1601 
1602  return size;
1603 }
int ngeoms
Definition: liblwgeom.h:585
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:1350
LWTRIANGLE ** geoms
Definition: liblwgeom.h:587
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: