Returns maximum size of rendered pointarray in bytes.
Definition at line 646 of file lwout_svg.c.
References getPoint2d_p(), POINTARRAY::npoints, OUT_MAX_DIGS_DOUBLE, OUT_MAX_DOUBLE, OUT_MAX_DOUBLE_PRECISION, trim_trailing_zeros(), pixval::x, POINT2D::x, pixval::y, and POINT2D::y.
Referenced by assvg_line_buf(), and assvg_polygon_buf().
656 if (close_ring) end = pa->
npoints;
659 for (i=0 ; i < end ; i++)
666 sprintf(x,
"%g", pt.
x);
671 sprintf(y,
"%.*f",
precision, fabs(pt.
y) ? pt.
y * -1:pt.
y);
673 sprintf(y,
"%g", fabs(pt.
y) ? pt.
y * -1:pt.
y);
676 if (i == 1) ptr += sprintf(ptr,
" L ");
677 else if (i) ptr += sprintf(ptr,
" ");
678 ptr += sprintf(ptr,
"%s %s", x, y);
#define OUT_MAX_DOUBLE_PRECISION
void trim_trailing_zeros(char *num)
int getPoint2d_p(const POINTARRAY *pa, int n, POINT2D *point)
#define OUT_MAX_DIGS_DOUBLE