PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ asgml2_multi()

static lwvarlena_t * asgml2_multi ( const LWCOLLECTION col,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 551 of file lwout_gml.c.

552 {
553  int size = asgml2_multi_size(col, srs, precision, prefix);
554  lwvarlena_t *output = lwalloc(LWVARHDRSZ + size);
555  size = asgml2_multi_buf(col, srs, output->data, precision, prefix);
556  LWSIZE_SET(output->size, size + LWVARHDRSZ);
557  return output;
558 }
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 asgml2_multi_size(const LWCOLLECTION *col, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:451
static size_t asgml2_multi_buf(const LWCOLLECTION *col, const char *srs, char *output, int precision, const char *prefix)
Definition: lwout_gml.c:492
uint32_t size
Definition: liblwgeom.h:321
char data[]
Definition: liblwgeom.h:322

References asgml2_multi_buf(), asgml2_multi_size(), lwvarlena_t::data, lwalloc(), LWSIZE_SET, LWVARHDRSZ, precision, and lwvarlena_t::size.

Referenced by lwgeom_to_gml2().

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