PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ asgml2_poly()

static char * asgml2_poly ( const LWPOLY poly,
const char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 412 of file lwout_gml.c.

References asgml2_poly_buf(), asgml2_poly_size(), and lwalloc().

Referenced by lwgeom_to_gml2().

413 {
414  char *output;
415  int size;
416 
417  size = asgml2_poly_size(poly, srs, precision, prefix);
418  output = lwalloc(size);
419  asgml2_poly_buf(poly, srs, output, precision, prefix);
420  return output;
421 }
static size_t asgml2_poly_size(const LWPOLY *poly, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:362
uint8_t precision
Definition: cu_in_twkb.c:25
static size_t asgml2_poly_buf(const LWPOLY *poly, const char *srs, char *output, int precision, const char *prefix)
Definition: lwout_gml.c:382
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: