PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t asgml3_psurface_size ( const LWPSURFACE psur,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1150 of file lwout_gml.c.

References asgml3_poly_size(), LWPSURFACE::geoms, and LWPSURFACE::ngeoms.

Referenced by asgml3_psurface().

1151 {
1152  int i;
1153  size_t size;
1154  size_t prefixlen = strlen(prefix);
1155 
1156  size = (sizeof("<PolyhedralSurface><polygonPatches>/") + prefixlen*2) * 2;
1157  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1158  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1159 
1160  for (i=0; i<psur->ngeoms; i++)
1161  {
1162  size += asgml3_poly_size(psur->geoms[i], 0, precision, opts, prefix, id);
1163  }
1164 
1165  return size;
1166 }
static size_t asgml3_poly_size(const LWPOLY *poly, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:897
LWPOLY ** geoms
Definition: liblwgeom.h:530
int ngeoms
Definition: liblwgeom.h:528

Here is the call graph for this function:

Here is the caller graph for this function: