PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ assvg_multisurface()

static void assvg_multisurface ( stringbuffer_t sb,
const LWMSURFACE msurface,
int  relative,
int  precision 
)
static

in theory this should never happen

Definition at line 444 of file lwout_svg.c.

445 {
446  LWGEOM *geom;
447  uint32_t i;
448  const LWPOLY *poly;
449  const LWCURVEPOLY *curvepoly;
450 
451  for (i = 0; i < msurface->ngeoms; i++)
452  {
453  if (i) stringbuffer_append(sb, " "); /* SVG whitespace Separator */
454  geom = msurface->geoms[i];
455  switch (geom->type)
456  {
457  case CURVEPOLYTYPE:
458  curvepoly = (LWCURVEPOLY *) geom;
459  assvg_curvepoly(sb, curvepoly, relative, precision);
460  break;
461  case POLYGONTYPE:
462  poly = (LWPOLY *) geom;
463  assvg_polygon(sb, poly, relative, precision);
464  break;
465  default:
466  break;
467  }
468  }
469 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define CURVEPOLYTYPE
Definition: liblwgeom.h:111
#define POLYGONTYPE
Definition: liblwgeom.h:104
static void assvg_curvepoly(stringbuffer_t *sb, const LWCURVEPOLY *curvepoly, int relative, int precision)
Definition: lwout_svg.c:406
static void assvg_polygon(stringbuffer_t *sb, const LWPOLY *poly, int relative, int precision)
Definition: lwout_svg.c:309
static void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
Definition: stringbuffer.h:105
uint8_t type
Definition: liblwgeom.h:462
uint32_t ngeoms
Definition: liblwgeom.h:636
LWGEOM ** geoms
Definition: liblwgeom.h:631

References assvg_curvepoly(), assvg_polygon(), CURVEPOLYTYPE, LWMSURFACE::geoms, LWMSURFACE::ngeoms, POLYGONTYPE, precision, stringbuffer_append(), and LWGEOM::type.

Referenced by assvg_geom(), and lwgeom_to_svg().

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