PostGIS  3.3.9dev-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 1514 of file lwout_gml.c.

1515 {
1516  uint32_t i;
1517  size_t size;
1518  size_t prefixlen = strlen(prefix);
1519 
1520  size = (sizeof("<PolyhedralSurface><polygonPatches>/") + prefixlen*2) * 2;
1521  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1522  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1523 
1524  for (i=0; i<psur->ngeoms; i++)
1525  {
1526  size += asgml3_poly_size(psur->geoms[i], 0, precision, opts, prefix, id);
1527  }
1528 
1529  return size;
1530 }
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:1004
opts
Definition: ovdump.py:45
LWPOLY ** geoms
Definition: liblwgeom.h:660
uint32_t ngeoms
Definition: liblwgeom.h:665

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: