Definition at line 550 of file lwout_svg.c.
559 double dx, dy,
x,
y, accum_x, accum_y;
568 if (close_ring) end = pa->
npoints;
574 x = round(pt->
x*f)/f;
575 y = round(pt->
y*f)/f;
579 ptr += sprintf(ptr,
"%s %s l", sx, sy);
586 for (i=1 ; i < end ; i++)
592 x = round(pt->
x*f)/f;
593 y = round(pt->
y*f)/f;
603 ptr += sprintf(ptr,
" %s %s", sx, sy);
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
#define OUT_DOUBLE_BUFFER_SIZE
int lwprint_double(double d, int maxdd, char *buf, size_t bufsize)
References getPoint2d_cp(), lwprint_double(), POINTARRAY::npoints, OUT_DOUBLE_BUFFER_SIZE, precision, POINT2D::x, pixval::x, POINT2D::y, and pixval::y.
Referenced by assvg_line_buf(), and assvg_polygon_buf().