PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ assvg_multipolygon_size()

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

Definition at line 371 of file lwout_svg.c.

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

Referenced by assvg_geom_size(), and assvg_multipolygon().

372 {
373  const LWPOLY *poly;
374  size_t size=0;
375  int i;
376 
377  for (i=0 ; i<mpoly->ngeoms ; i++)
378  {
379  poly = mpoly->geoms[i];
380  size += assvg_polygon_size(poly, relative, precision);
381  }
382  size += sizeof(" ") * --i; /* SVG whitespace Separator */
383 
384  return size;
385 }
static size_t assvg_polygon_size(const LWPOLY *poly, int relative, int precision)
Polygon Geometry.
Definition: lwout_svg.c:210
LWPOLY ** geoms
Definition: liblwgeom.h:496
uint8_t precision
Definition: cu_in_twkb.c:25
int ngeoms
Definition: liblwgeom.h:494
Here is the call graph for this function:
Here is the caller graph for this function: