PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ asgml3_poly()

static lwvarlena_t * asgml3_poly ( const LWPOLY poly,
const char *  srs,
int  precision,
int  opts,
int  is_patch,
const char *  prefix,
const char *  id 
)
static

Definition at line 1074 of file lwout_gml.c.

1081 {
1082  size_t size = asgml3_poly_size(poly, srs, precision, opts, prefix, id);
1083  lwvarlena_t *output = lwalloc(LWVARHDRSZ + size);
1084  size = asgml3_poly_buf(poly, srs, output->data, precision, opts, is_patch, prefix, id);
1085  LWSIZE_SET(output->size, size + LWVARHDRSZ);
1086  return output;
1087 }
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 asgml3_poly_size(const LWPOLY *poly, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:1004
static size_t asgml3_poly_buf(const LWPOLY *poly, const char *srs, char *output, int precision, int opts, int is_patch, const char *prefix, const char *id)
Definition: lwout_gml.c:1024
opts
Definition: ovdump.py:45
uint32_t size
Definition: liblwgeom.h:322
char data[]
Definition: liblwgeom.h:323

References asgml3_poly_buf(), asgml3_poly_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: