PostGIS  2.5.7dev-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.

648 {
649  return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(" "))
650  * 2 * pa->npoints + sizeof(" L ");
651 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define OUT_MAX_DIGS_DOUBLE
uint32_t npoints
Definition: liblwgeom.h:374

References POINTARRAY::npoints, OUT_MAX_DIGS_DOUBLE, and precision.

Referenced by assvg_line_size(), and assvg_polygon_size().

Here is the caller graph for this function: