PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ asgml3_triangle()

static char * asgml3_triangle ( const LWTRIANGLE triangle,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1379 of file lwout_gml.c.

References asgml3_triangle_buf(), asgml3_triangle_size(), and lwalloc().

Referenced by lwgeom_to_gml3().

1380 {
1381  char *output;
1382  int size;
1383 
1384  size = asgml3_triangle_size(triangle, srs, precision, opts, prefix, id);
1385  output = lwalloc(size);
1386  asgml3_triangle_buf(triangle, srs, output, precision, opts, prefix, id);
1387  return output;
1388 }
static size_t asgml3_triangle_size(const LWTRIANGLE *triangle, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:1337
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t asgml3_triangle_buf(const LWTRIANGLE *triangle, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:1354
void * lwalloc(size_t size)
Definition: lwutil.c:199
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: