PostGIS  2.5.2dev-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 1503 of file lwout_gml.c.

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

Referenced by asgml3_psurface().

1504 {
1505  uint32_t i;
1506  size_t size;
1507  size_t prefixlen = strlen(prefix);
1508 
1509  size = (sizeof("<PolyhedralSurface><polygonPatches>/") + prefixlen*2) * 2;
1510  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1511  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1512 
1513  for (i=0; i<psur->ngeoms; i++)
1514  {
1515  size += asgml3_poly_size(psur->geoms[i], 0, precision, opts, prefix, id);
1516  }
1517 
1518  return size;
1519 }
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:995
LWPOLY ** geoms
Definition: liblwgeom.h:576
uint32_t ngeoms
Definition: liblwgeom.h:574
unsigned int uint32_t
Definition: uthash.h:78
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: