PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ asgml2_collection()

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

Definition at line 667 of file lwout_gml.c.

668 {
669  int size = asgml2_collection_size(col, srs, precision, prefix);
670  lwvarlena_t *output = lwalloc(LWVARHDRSZ + size);
671  size = asgml2_collection_buf(col, srs, output->data, precision, prefix);
672  LWSIZE_SET(output->size, size + LWVARHDRSZ);
673  return output;
674 }
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 asgml2_collection_size(const LWCOLLECTION *col, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:565
static size_t asgml2_collection_buf(const LWCOLLECTION *col, const char *srs, char *output, int precision, const char *prefix)
Definition: lwout_gml.c:611
uint32_t size
Definition: liblwgeom.h:322
char data[]
Definition: liblwgeom.h:323

References asgml2_collection_buf(), asgml2_collection_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: