PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ pointArray_svg_size()

static size_t pointArray_svg_size ( POINTARRAY pa,
int  precision 
)
static

Returns maximum size of rendered pointarray in bytes.

Definition at line 647 of file lwout_svg.c.

References POINTARRAY::npoints, and OUT_MAX_DIGS_DOUBLE.

Referenced by assvg_line_size(), and assvg_polygon_size().

648 {
649  return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(" "))
650  * 2 * pa->npoints + sizeof(" L ");
651 }
uint8_t precision
Definition: cu_in_twkb.c:25
#define OUT_MAX_DIGS_DOUBLE
uint32_t npoints
Definition: liblwgeom.h:373
Here is the caller graph for this function: