PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ assvg_polygon_size()

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

Polygon Geometry.

Definition at line 200 of file lwout_svg.c.

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 }
static 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
POINTARRAY ** rings
Definition: liblwgeom.h:460
uint32_t nrings
Definition: liblwgeom.h:458
unsigned int uint32_t
Definition: uthash.h:78

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

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

Here is the call graph for this function:
Here is the caller graph for this function: