PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ assvg_collection_buf()

static size_t assvg_collection_buf ( const LWCOLLECTION col,
char *  output,
int  relative,
int  precision 
)
static

Definition at line 416 of file lwout_svg.c.

417 {
418  uint32_t i;
419  char *ptr=output;
420  const LWGEOM *subgeom;
421 
422  /* EMPTY GEOMETRYCOLLECTION */
423  if (col->ngeoms == 0) *ptr = '\0';
424 
425  for (i=0; i<col->ngeoms; i++)
426  {
427  if (i) ptr += sprintf(ptr, ";");
428  subgeom = col->geoms[i];
429  ptr += assvg_geom_buf(subgeom, ptr, relative, precision);
430  }
431 
432  return (ptr - output);
433 }
static 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:447
uint32_t ngeoms
Definition: liblwgeom.h:595
LWGEOM ** geoms
Definition: liblwgeom.h:590

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

Referenced by assvg_collection().

Here is the call graph for this function:
Here is the caller graph for this function: