PostGIS  2.1.10dev-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 1021 of file lwout_gml.c.

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

Referenced by lwgeom_to_gml3().

1022 {
1023  char *output;
1024  int size;
1025 
1026  size = asgml3_triangle_size(triangle, srs, precision, opts, prefix, id);
1027  output = lwalloc(size);
1028  asgml3_triangle_buf(triangle, srs, output, precision, opts, prefix, id);
1029  return output;
1030 }
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:979
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:996
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function:

Here is the caller graph for this function: