PostGIS  2.5.7dev-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.

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 uint8_t precision
Definition: cu_in_twkb.c:25
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
opts
Definition: ovdump.py:44
LWPOLY ** geoms
Definition: liblwgeom.h:577
uint32_t ngeoms
Definition: liblwgeom.h:575
unsigned int uint32_t
Definition: uthash.h:78

References asgml3_poly_size(), LWPSURFACE::geoms, LWPSURFACE::ngeoms, ovdump::opts, and precision.

Referenced by asgml3_psurface().

Here is the call graph for this function:
Here is the caller graph for this function: