PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ assvg_point_buf()

static size_t assvg_point_buf ( const LWPOINT point,
char *  output,
int  circle,
int  precision 
)
static

Definition at line 119 of file lwout_svg.c.

120 {
121  char *ptr=output;
124  POINT2D pt;
125 
126  getPoint2d_p(point->point, 0, &pt);
127 
130 
131  if (circle) ptr += sprintf(ptr, "x=\"%s\" y=\"%s\"", x, y);
132  else ptr += sprintf(ptr, "cx=\"%s\" cy=\"%s\"", x, y);
133 
134  return (ptr-output);
135 }
static uint8_t precision
Definition: cu_in_twkb.c:25
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
Definition: lwgeom_api.c:348
#define OUT_DOUBLE_BUFFER_SIZE
int lwprint_double(double d, int maxdd, char *buf, size_t bufsize)
Definition: lwprint.c:490
POINTARRAY * point
Definition: liblwgeom.h:414
double y
Definition: liblwgeom.h:331
double x
Definition: liblwgeom.h:331

References getPoint2d_p(), lwprint_double(), OUT_DOUBLE_BUFFER_SIZE, LWPOINT::point, precision, POINT2D::x, pixval::x, POINT2D::y, and pixval::y.

Referenced by assvg_geom_buf(), assvg_multipoint_buf(), and assvg_point().

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