PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ assvg_multiline_size()

static size_t assvg_multiline_size ( const LWMLINE mline,
int  relative,
int  precision 
)
static

Multiline Geometry.

Definition at line 309 of file lwout_svg.c.

References assvg_line_size(), LWMLINE::geoms, and LWMLINE::ngeoms.

Referenced by assvg_geom_size(), and assvg_multiline().

310 {
311  const LWLINE *line;
312  size_t size=0;
313  uint32_t i;
314 
315  for (i=0 ; i<mline->ngeoms ; i++)
316  {
317  line = mline->geoms[i];
318  size += assvg_line_size(line, relative, precision);
319  }
320  size += sizeof(" ") * --i; /* SVG whitespace Separator */
321 
322  return size;
323 }
unsigned int uint32_t
Definition: uthash.h:78
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t assvg_line_size(const LWLINE *line, __attribute__((__unused__)) int relative, int precision)
Line Geometry.
Definition: lwout_svg.c:156
uint32_t ngeoms
Definition: liblwgeom.h:483
LWLINE ** geoms
Definition: liblwgeom.h:485
Here is the call graph for this function:
Here is the caller graph for this function: