PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ assvg_multipolygon_size()

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

Definition at line 357 of file lwout_svg.c.

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

Referenced by assvg_geom_size(), and assvg_multipolygon().

358 {
359  const LWPOLY *poly;
360  size_t size=0;
361  int i;
362 
363  for (i=0 ; i<mpoly->ngeoms ; i++)
364  {
365  poly = mpoly->geoms[i];
366  size += assvg_polygon_size(poly, relative, precision);
367  }
368  size += sizeof(" ") * --i; /* SVG whitespace Separator */
369 
370  return size;
371 }
static size_t assvg_polygon_size(const LWPOLY *poly, int relative, int precision)
Polygon Geometry.
Definition: lwout_svg.c:196
LWPOLY ** geoms
Definition: liblwgeom.h:480
uint8_t precision
Definition: cu_in_twkb.c:25
int ngeoms
Definition: liblwgeom.h:478
Here is the call graph for this function:
Here is the caller graph for this function: