PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ assvg_point()

static lwvarlena_t * assvg_point ( const LWPOINT point,
int  relative,
int  precision 
)
static

Definition at line 138 of file lwout_svg.c.

139 {
140  size_t size = assvg_point_size(point, circle, precision);
141  lwvarlena_t *v = lwalloc(LWVARHDRSZ + size);
142  size = assvg_point_buf(point, v->data, circle, precision);
143  LWSIZE_SET(v->size, LWVARHDRSZ + size);
144  return v;
145 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define LWVARHDRSZ
Definition: liblwgeom.h:325
#define LWSIZE_SET(varsize, len)
Definition: liblwgeom.h:339
void * lwalloc(size_t size)
Definition: lwutil.c:227
static size_t assvg_point_buf(const LWPOINT *point, char *output, int circle, int precision)
Definition: lwout_svg.c:119
static size_t assvg_point_size(__attribute__((__unused__)) const LWPOINT *point, int circle, int precision)
Point Geometry.
Definition: lwout_svg.c:107
uint32_t size
Definition: liblwgeom.h:321
char data[]
Definition: liblwgeom.h:322

References assvg_point_buf(), assvg_point_size(), lwvarlena_t::data, lwalloc(), LWSIZE_SET, LWVARHDRSZ, precision, and lwvarlena_t::size.

Referenced by lwgeom_to_svg().

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