PostGIS  2.4.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 1522 of file lwout_gml.c.

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

Referenced by asgml3_psurface().

1523 {
1524  int i;
1525  size_t size;
1526  size_t prefixlen = strlen(prefix);
1527 
1528  size = (sizeof("<PolyhedralSurface><polygonPatches>/") + prefixlen*2) * 2;
1529  if (srs) size += strlen(srs) + sizeof(" srsName=..");
1530  if (id) size += strlen(id) + strlen(prefix) + sizeof(" id=..");
1531 
1532  for (i=0; i<psur->ngeoms; i++)
1533  {
1534  size += asgml3_poly_size(psur->geoms[i], 0, precision, opts, prefix, id);
1535  }
1536 
1537  return size;
1538 }
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:1014
LWPOLY ** geoms
Definition: liblwgeom.h:574
uint8_t precision
Definition: cu_in_twkb.c:25
opts
Definition: ovdump.py:44
int ngeoms
Definition: liblwgeom.h:572
Here is the call graph for this function:
Here is the caller graph for this function: