PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ assvg_multipolygon_size()

static size_t assvg_multipolygon_size ( const LWMPOLY mpoly,
int  relative,
int  precision 
)
static

Definition at line 361 of file lwout_svg.c.

References assvg_polygon_size(), LWMPOLY::geoms, and LWMPOLY::ngeoms.

Referenced by assvg_geom_size(), and assvg_multipolygon().

362 {
363  const LWPOLY *poly;
364  size_t size=0;
365  uint32_t i;
366 
367  for (i=0 ; i<mpoly->ngeoms ; i++)
368  {
369  poly = mpoly->geoms[i];
370  size += assvg_polygon_size(poly, relative, precision);
371  }
372  size += sizeof(" ") * --i; /* SVG whitespace Separator */
373 
374  return size;
375 }
uint32_t ngeoms
Definition: liblwgeom.h:496
unsigned int uint32_t
Definition: uthash.h:78
LWPOLY ** geoms
Definition: liblwgeom.h:498
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t assvg_polygon_size(const LWPOLY *poly, __attribute__((__unused__)) int relative, int precision)
Polygon Geometry.
Definition: lwout_svg.c:200
Here is the call graph for this function:
Here is the caller graph for this function: