PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ assvg_multipolygon_size()

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

Definition at line 346 of file lwout_svg.c.

347 {
348  const LWPOLY *poly;
349  size_t size=0;
350  uint32_t i;
351 
352  for (i=0 ; i<mpoly->ngeoms ; i++)
353  {
354  poly = mpoly->geoms[i];
355  size += assvg_polygon_size(poly, relative, precision);
356  }
357  size += sizeof(" ") * --i; /* SVG whitespace Separator */
358 
359  return size;
360 }
static 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:194
uint32_t ngeoms
Definition: liblwgeom.h:580
LWPOLY ** geoms
Definition: liblwgeom.h:575

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

Referenced by assvg_geom_size(), and assvg_multipolygon().

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