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

◆ assvg_line()

static void assvg_line ( stringbuffer_t sb,
const LWLINE line,
int  relative,
int  precision 
)
static

Definition at line 152 of file lwout_svg.c.

153{
154 /* Start path with SVG MoveTo */
155 stringbuffer_append(sb, "M ");
156 if (relative)
157 pointArray_svg_rel(sb, line->points, 1, precision, 0);
158 else
159 pointArray_svg_abs(sb, line->points, 1, precision, 0);
160}
static uint8_t precision
Definition cu_in_twkb.c:25
static void pointArray_svg_rel(stringbuffer_t *sb, const POINTARRAY *pa, int close_ring, int precision, int start_at_index)
Definition lwout_svg.c:44
static void pointArray_svg_abs(stringbuffer_t *sb, const POINTARRAY *pa, int close_ring, int precision, int start_at_index)
Returns maximum size of rendered pointarray in bytes.
Definition lwout_svg.c:102
static void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
POINTARRAY * points
Definition liblwgeom.h:483

References pointArray_svg_abs(), pointArray_svg_rel(), LWLINE::points, precision, and stringbuffer_append().

Referenced by assvg_curvepoly(), assvg_geom(), assvg_multicurve(), assvg_multiline(), and lwgeom_to_svg().

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