PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t asx3d3_psurface_size ( const LWPSURFACE psur,
char *  srs,
int  precision,
int  opts,
const char *  defid 
)
static

need to make space for coordIndex values too including -1 separating each poly

Definition at line 494 of file lwout_x3d.c.

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

Referenced by asx3d3_psurface().

495 {
496  int i;
497  size_t size;
498  size_t defidlen = strlen(defid);
499 
500  size = sizeof("<IndexedFaceSet coordIndex=''><Coordinate point='' />") + defidlen;
501 
502  for (i=0; i<psur->ngeoms; i++)
503  {
504  size += asx3d3_poly_size(psur->geoms[i], 0, precision, opts, defid)*5;
505  }
506 
507  return size;
508 }
static size_t asx3d3_poly_size(const LWPOLY *poly, char *srs, int precision, int opts, const char *defid)
Compute the string space needed for the IndexedFaceSet representation of the polygon.
Definition: lwout_x3d.c:295
LWPOLY ** geoms
Definition: liblwgeom.h:530
int ngeoms
Definition: liblwgeom.h:528

Here is the call graph for this function:

Here is the caller graph for this function: