PostGIS  2.3.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 210 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().

211 {
212  int i;
213  size_t size=0;
214 
215  for (i=0; i<poly->nrings; i++)
216  size += pointArray_svg_size(poly->rings[i], precision) + sizeof(" ");
217  size += sizeof("M Z") * poly->nrings;
218 
219  return size;
220 }
POINTARRAY ** rings
Definition: liblwgeom.h:456
uint8_t precision
Definition: cu_in_twkb.c:25
int nrings
Definition: liblwgeom.h:454
static size_t pointArray_svg_size(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_svg.c:689
Here is the call graph for this function:
Here is the caller graph for this function: