PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ asgml2_point()

static lwvarlena_t * asgml2_point ( const LWPOINT point,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 331 of file lwout_gml.c.

332 {
333  int size = asgml2_point_size(point, srs, precision, prefix);
334  lwvarlena_t *output = lwalloc(LWVARHDRSZ + size);
335  size = asgml2_point_buf(point, srs, output->data, precision, prefix);
336  LWSIZE_SET(output->size, size + LWVARHDRSZ);
337  return output;
338 }
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_point_size(const LWPOINT *point, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:299
static size_t asgml2_point_buf(const LWPOINT *point, const char *srs, char *output, int precision, const char *prefix)
Definition: lwout_gml.c:311
uint32_t size
Definition: liblwgeom.h:321
char data[]
Definition: liblwgeom.h:322

References asgml2_point_buf(), asgml2_point_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: