PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asgml2_line()

static char * asgml2_line ( const LWLINE line,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 337 of file lwout_gml.c.

References asgml2_line_buf(), asgml2_line_size(), and lwalloc().

Referenced by lwgeom_to_gml2().

338 {
339  char *output;
340  int size;
341 
342  size = asgml2_line_size(line, srs, precision, prefix);
343  output = lwalloc(size);
344  asgml2_line_buf(line, srs, output, precision, prefix);
345  return output;
346 }
static size_t asgml2_line_size(const LWLINE *line, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:302
uint8_t precision
Definition: cu_in_twkb.c:25
void * lwalloc(size_t size)
Definition: lwutil.c:199
static size_t asgml2_line_buf(const LWLINE *line, const char *srs, char *output, int precision, const char *prefix)
Definition: lwout_gml.c:314
Here is the call graph for this function:
Here is the caller graph for this function: