PostGIS  2.5.0dev-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 274 of file lwout_svg.c.

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

Referenced by assvg_geom_buf(), and assvg_multipoint().

275 {
276  const LWPOINT *point;
277  uint32_t i;
278  char *ptr=output;
279 
280  for (i=0 ; i<mpoint->ngeoms ; i++)
281  {
282  if (i) ptr += sprintf(ptr, ","); /* Arbitrary comma separator */
283  point = mpoint->geoms[i];
284  ptr += assvg_point_buf(point, ptr, relative, precision);
285  }
286 
287  return (ptr-output);
288 }
uint32_t ngeoms
Definition: liblwgeom.h:470
unsigned int uint32_t
Definition: uthash.h:78
uint8_t precision
Definition: cu_in_twkb.c:25
LWPOINT ** geoms
Definition: liblwgeom.h:472
static size_t assvg_point_buf(const LWPOINT *point, char *output, int circle, int precision)
Definition: lwout_svg.c:119
Here is the call graph for this function:
Here is the caller graph for this function: