PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ assvg_polygon()

static lwvarlena_t * assvg_polygon ( const LWPOLY poly,
int  relative,
int  precision 
)
static

Definition at line 233 of file lwout_svg.c.

234 {
235  size_t size = assvg_polygon_size(poly, relative, precision);
236  lwvarlena_t *v = lwalloc(LWVARHDRSZ + size);
237  size = assvg_polygon_buf(poly, v->data, relative, precision);
238  LWSIZE_SET(v->size, LWVARHDRSZ + size);
239  return v;
240 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define LWVARHDRSZ
Definition: liblwgeom.h:326
#define LWSIZE_SET(varsize, len)
Definition: liblwgeom.h:340
void * lwalloc(size_t size)
Definition: lwutil.c:227
static size_t assvg_polygon_size(const LWPOLY *poly, __attribute__((__unused__)) int relative, int precision)
Polygon Geometry.
Definition: lwout_svg.c:194
static size_t assvg_polygon_buf(const LWPOLY *poly, char *output, int relative, int precision)
Definition: lwout_svg.c:207
uint32_t size
Definition: liblwgeom.h:322
char data[]
Definition: liblwgeom.h:323

References assvg_polygon_buf(), assvg_polygon_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: