PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ assvg_multicurve()

static void assvg_multicurve ( stringbuffer_t sb,
const LWMCURVE mcurve,
int  relative,
int  precision 
)
static

in theory this should never happen

Definition at line 375 of file lwout_svg.c.

376{
377 uint32_t i;
378 LWGEOM *geom;
379 const LWCIRCSTRING *tmpc = NULL;
380 const LWLINE *tmpl = NULL;
381
382 for (i = 0; i < mcurve->ngeoms; i++)
383 {
384 if (i) stringbuffer_append(sb, " "); /* SVG whitespace Separator */
385 geom = mcurve->geoms[i];
386
387 switch (geom->type)
388 {
389 case CIRCSTRINGTYPE:
390 tmpc = (LWCIRCSTRING *)geom;
391 assvg_circstring(sb, tmpc, relative, precision);
392 break;
393
394 case LINETYPE:
395 tmpl = (LWLINE *)geom;
396 assvg_line(sb, tmpl, relative, precision);
397 break;
398
399 default:
400 break;
401 }
402 }
403}
static uint8_t precision
Definition cu_in_twkb.c:25
#define LINETYPE
Definition liblwgeom.h:103
#define CIRCSTRINGTYPE
Definition liblwgeom.h:109
static void assvg_line(stringbuffer_t *sb, const LWLINE *line, int relative, int precision)
Definition lwout_svg.c:152
static void assvg_circstring(stringbuffer_t *sb, const LWCIRCSTRING *icurve, int relative, int precision)
Definition lwout_svg.c:253
static void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
uint8_t type
Definition liblwgeom.h:462
LWGEOM ** geoms
Definition liblwgeom.h:617
uint32_t ngeoms
Definition liblwgeom.h:622

References assvg_circstring(), assvg_line(), CIRCSTRINGTYPE, LWMCURVE::geoms, LINETYPE, LWMCURVE::ngeoms, 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: