PostGIS  2.5.0dev-r@@SVN_REVISION@@
static char * asgml3_triangle ( const LWTRIANGLE triangle,
const char *  srs,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1373 of file lwout_gml.c.

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

Referenced by lwgeom_to_gml3().

1374 {
1375  char *output;
1376  int size;
1377 
1378  size = asgml3_triangle_size(triangle, srs, precision, opts, prefix, id);
1379  output = lwalloc(size);
1380  asgml3_triangle_buf(triangle, srs, output, precision, opts, prefix, id);
1381  return output;
1382 }
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:1331
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:1348
void * lwalloc(size_t size)
Definition: lwutil.c:229

Here is the call graph for this function:

Here is the caller graph for this function: