PostGIS  3.3.9dev-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 626 of file lwout_svg.c.

627 {
628  return (OUT_MAX_BYTES_DOUBLE + precision + sizeof(" ")) * 2 * pa->npoints + sizeof(" L ");
629 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define OUT_MAX_BYTES_DOUBLE
uint32_t npoints
Definition: liblwgeom.h:442

References POINTARRAY::npoints, OUT_MAX_BYTES_DOUBLE, and precision.

Referenced by assvg_line_size(), and assvg_polygon_size().

Here is the caller graph for this function: