PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t assvg_collection_buf ( const LWCOLLECTION col,
char *  output,
int  relative,
int  precision 
)
static

Definition at line 431 of file lwout_svg.c.

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

Referenced by assvg_collection().

432 {
433  int i;
434  char *ptr=output;
435  const LWGEOM *subgeom;
436 
437  /* EMPTY GEOMETRYCOLLECTION */
438  if (col->ngeoms == 0) *ptr = '\0';
439 
440  for (i=0; i<col->ngeoms; i++)
441  {
442  if (i) ptr += sprintf(ptr, ";");
443  subgeom = col->geoms[i];
444  ptr += assvg_geom_buf(subgeom, ptr, relative, precision);
445  }
446 
447  return (ptr - output);
448 }
LWGEOM ** geoms
Definition: liblwgeom.h:465
static size_t assvg_geom_buf(const LWGEOM *geom, char *output, int relative, int precision)
Definition: lwout_svg.c:465

Here is the call graph for this function:

Here is the caller graph for this function: