PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 1215 of file lwout_gml.c.

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

Referenced by asgml3_tin().

1216 {
1217  int i;
1218  size_t size;
1219  size_t prefixlen = strlen(prefix);
1220 
1221  size = (sizeof("<Tin><trianglePatches>/") + prefixlen*2) * 2;
1222  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1223  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1224 
1225  for (i=0; i<tin->ngeoms; i++)
1226  {
1227  size += asgml3_triangle_size(tin->geoms[i], 0, precision, opts, prefix, id);
1228  }
1229 
1230  return size;
1231 }
int ngeoms
Definition: liblwgeom.h:541
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:979
LWTRIANGLE ** geoms
Definition: liblwgeom.h:543

Here is the call graph for this function:

Here is the caller graph for this function: