PostGIS  2.5.0dev-r@@SVN_REVISION@@
static size_t assvg_line_buf ( const LWLINE line,
char *  output,
int  relative,
int  precision 
)
static

Definition at line 167 of file lwout_svg.c.

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

Referenced by assvg_geom_buf(), assvg_line(), and assvg_multiline_buf().

168 {
169  char *ptr=output;
170 
171  /* Start path with SVG MoveTo */
172  ptr += sprintf(ptr, "M ");
173  if (relative)
174  ptr += pointArray_svg_rel(line->points, ptr, 1, precision);
175  else
176  ptr += pointArray_svg_abs(line->points, ptr, 1, precision);
177 
178  return (ptr-output);
179 }
static size_t pointArray_svg_rel(POINTARRAY *pa, char *output, int close_ring, int precision)
Definition: lwout_svg.c:550
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_svg_abs(POINTARRAY *pa, char *output, int close_ring, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_svg.c:614
POINTARRAY * points
Definition: liblwgeom.h:421

Here is the call graph for this function:

Here is the caller graph for this function: