PostGIS  2.5.0dev-r@@SVN_REVISION@@
static size_t assvg_polygon_size ( const LWPOLY poly,
int  relative,
int  precision 
)
static

Polygon Geometry.

Definition at line 200 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().

201 {
202  uint32_t i;
203  size_t size=0;
204 
205  for (i=0; i<poly->nrings; i++)
206  size += pointArray_svg_size(poly->rings[i], precision) + sizeof(" ");
207  size += sizeof("M Z") * poly->nrings;
208 
209  return size;
210 }
uint32_t nrings
Definition: liblwgeom.h:454
unsigned int uint32_t
Definition: uthash.h:78
POINTARRAY ** rings
Definition: liblwgeom.h:456
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t pointArray_svg_size(POINTARRAY *pa, int precision)
Returns maximum size of rendered pointarray in bytes.
Definition: lwout_svg.c:647

Here is the call graph for this function:

Here is the caller graph for this function: