PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asgml3_psurface_size()

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 1509 of file lwout_gml.c.

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

Referenced by asgml3_psurface().

1510 {
1511  int i;
1512  size_t size;
1513  size_t prefixlen = strlen(prefix);
1514 
1515  size = (sizeof("<PolyhedralSurface><polygonPatches>/") + prefixlen*2) * 2;
1516  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1517  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1518 
1519  for (i=0; i<psur->ngeoms; i++)
1520  {
1521  size += asgml3_poly_size(psur->geoms[i], 0, precision, opts, prefix, id);
1522  }
1523 
1524  return size;
1525 }
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:1001
LWPOLY ** geoms
Definition: liblwgeom.h:558
uint8_t precision
Definition: cu_in_twkb.c:25
opts
Definition: ovdump.py:44
int ngeoms
Definition: liblwgeom.h:556
Here is the call graph for this function:
Here is the caller graph for this function: