PostGIS  2.5.1dev-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.

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

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

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 }
int lwprint_double(double d, int maxdd, char *buf, size_t bufsize)
Definition: lwprint.c:490
POINTARRAY * point
Definition: liblwgeom.h:413
double x
Definition: liblwgeom.h:330
uint8_t precision
Definition: cu_in_twkb.c:25
double y
Definition: liblwgeom.h:330
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
Definition: lwgeom_api.c:338
#define OUT_DOUBLE_BUFFER_SIZE
Here is the call graph for this function:
Here is the caller graph for this function: