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

Definition at line 444 of file lwout_svg.c.

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

Referenced by assvg_collection().

445 {
446  int i;
447  char *ptr=output;
448  const LWGEOM *subgeom;
449 
450  /* EMPTY GEOMETRYCOLLECTION */
451  if (col->ngeoms == 0) *ptr = '\0';
452 
453  for (i=0; i<col->ngeoms; i++)
454  {
455  if (i) ptr += sprintf(ptr, ";");
456  subgeom = col->geoms[i];
457  ptr += assvg_geom_buf(subgeom, ptr, relative, precision);
458  }
459 
460  return (ptr - output);
461 }
LWGEOM ** geoms
Definition: liblwgeom.h:508
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t assvg_geom_buf(const LWGEOM *geom, char *output, int relative, int precision)
Definition: lwout_svg.c:478

Here is the call graph for this function:

Here is the caller graph for this function: