PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ asgml3_triangle()

static lwvarlena_t * asgml3_triangle ( const LWTRIANGLE triangle,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1383 of file lwout_gml.c.

1389 {
1390  size_t size = asgml3_triangle_size(triangle, srs, precision, opts, prefix, id);
1391  lwvarlena_t *output = lwalloc(LWVARHDRSZ + size);
1392  size = asgml3_triangle_buf(triangle, srs, output->data, precision, opts, prefix, id);
1393  LWSIZE_SET(output->size, size + LWVARHDRSZ);
1394  return output;
1395 }
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 asgml3_triangle_size(const LWTRIANGLE *triangle, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:1341
static size_t asgml3_triangle_buf(const LWTRIANGLE *triangle, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:1358
opts
Definition: ovdump.py:45
uint32_t size
Definition: liblwgeom.h:321
char data[]
Definition: liblwgeom.h:322

References asgml3_triangle_buf(), asgml3_triangle_size(), lwvarlena_t::data, lwalloc(), LWSIZE_SET, LWVARHDRSZ, ovdump::opts, precision, and lwvarlena_t::size.

Referenced by lwgeom_to_gml3().

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