PostGIS  3.0.6dev-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 1502 of file lwout_gml.c.

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

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: