PostGIS  2.4.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 689 of file lwout_svg.c.

References POINTARRAY::npoints, and OUT_MAX_DIGS_DOUBLE.

Referenced by assvg_line_size(), and assvg_polygon_size().

690 {
691  return (OUT_MAX_DIGS_DOUBLE + precision + sizeof(" "))
692  * 2 * pa->npoints + sizeof(" L ");
693 }
int npoints
Definition: liblwgeom.h:371
uint8_t precision
Definition: cu_in_twkb.c:25
#define OUT_MAX_DIGS_DOUBLE
Here is the caller graph for this function: