PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ assvg_polygon_size()

static size_t assvg_polygon_size ( const LWPOLY poly,
int  relative,
int  precision 
)
static

Polygon Geometry.

Definition at line 196 of file lwout_svg.c.

References LWPOLY::nrings, pointArray_svg_size(), and LWPOLY::rings.

Referenced by assvg_geom_size(), assvg_multipolygon_size(), and assvg_polygon().

197 {
198  int i;
199  size_t size=0;
200 
201  for (i=0; i<poly->nrings; i++)
202  size += pointArray_svg_size(poly->rings[i], precision) + sizeof(" ");
203  size += sizeof("M Z") * poly->nrings;
204 
205  return size;
206 }
POINTARRAY ** rings
Definition: liblwgeom.h:441
uint8_t precision
Definition: cu_in_twkb.c:25
int nrings
Definition: liblwgeom.h:439
static size_t pointArray_svg_size(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_svg.c:675
Here is the call graph for this function:
Here is the caller graph for this function: