Returns maximum size of rendered pointarray in bytes.
Definition at line 614 of file lwout_svg.c.
615{
616 int i, end;
617 char *ptr;
621
622 ptr = output;
623
624 if (close_ring) end = pa->
npoints;
626
627 for (i=0 ; i < end ; i++)
628 {
630
633
634 if (i == 1) ptr += sprintf(ptr, " L ");
635 else if (i) ptr += sprintf(ptr, " ");
636 ptr += sprintf(ptr,"%s %s", x, y);
637 }
638
639 return (ptr-output);
640}
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
#define OUT_DOUBLE_BUFFER_SIZE
int lwprint_double(double d, int maxdd, char *buf, size_t bufsize)
References getPoint2d_p(), lwprint_double(), POINTARRAY::npoints, OUT_DOUBLE_BUFFER_SIZE, precision, POINT2D::x, and POINT2D::y.
Referenced by assvg_line_buf(), and assvg_polygon_buf().