PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t assvg_collection_size ( const LWCOLLECTION col,
int  relative,
int  precision 
)
static

Collection Geometry.

Definition at line 410 of file lwout_svg.c.

References assvg_geom_size(), LWCOLLECTION::geoms, and LWCOLLECTION::ngeoms.

Referenced by assvg_collection().

411 {
412  int i = 0;
413  size_t size=0;
414  const LWGEOM *subgeom;
415 
416  for (i=0; i<col->ngeoms; i++)
417  {
418  subgeom = col->geoms[i];
419  size += assvg_geom_size(subgeom, relative, precision);
420  }
421 
422  if ( i ) /* We have some geometries, so add space for delimiters. */
423  size += sizeof(";") * --i;
424 
425  if (size == 0) size++; /* GEOMETRYCOLLECTION EMPTY, space for null terminator */
426 
427  return size;
428 }
LWGEOM ** geoms
Definition: liblwgeom.h:465
static size_t assvg_geom_size(const LWGEOM *geom, int relative, int precision)
Definition: lwout_svg.c:506

Here is the call graph for this function:

Here is the caller graph for this function: