PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ assvg_multipoint_buf()

static size_t assvg_multipoint_buf ( const LWMPOINT mpoint,
char *  output,
int  relative,
int  precision 
)
static

Definition at line 270 of file lwout_svg.c.

References assvg_point_buf(), LWMPOINT::geoms, and LWMPOINT::ngeoms.

Referenced by assvg_geom_buf(), and assvg_multipoint().

271 {
272  const LWPOINT *point;
273  int i;
274  char *ptr=output;
275 
276  for (i=0 ; i<mpoint->ngeoms ; i++)
277  {
278  if (i) ptr += sprintf(ptr, ","); /* Arbitrary comma separator */
279  point = mpoint->geoms[i];
280  ptr += assvg_point_buf(point, ptr, relative, precision);
281  }
282 
283  return (ptr-output);
284 }
uint8_t precision
Definition: cu_in_twkb.c:25
LWPOINT ** geoms
Definition: liblwgeom.h:454
static size_t assvg_point_buf(const LWPOINT *point, char *output, int circle, int precision)
Definition: lwout_svg.c:105
int ngeoms
Definition: liblwgeom.h:452
Here is the call graph for this function:
Here is the caller graph for this function: