PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ assvg_line_buf()

static size_t assvg_line_buf ( const LWLINE line,
char *  output,
int  relative,
int  precision 
)
static

Definition at line 177 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().

178 {
179  char *ptr=output;
180 
181  /* Start path with SVG MoveTo */
182  ptr += sprintf(ptr, "M ");
183  if (relative)
184  ptr += pointArray_svg_rel(line->points, ptr, 1, precision);
185  else
186  ptr += pointArray_svg_abs(line->points, ptr, 1, precision);
187 
188  return (ptr-output);
189 }
static size_t pointArray_svg_rel(POINTARRAY *pa, char *output, int close_ring, int precision)
Definition: lwout_svg.c:560
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:646
POINTARRAY * points
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: