PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_gml2_test_prefix()

static void do_gml2_test_prefix ( char *  in,
char *  out,
char *  srs,
int  precision,
const char *  prefix 
)
static

Definition at line 38 of file cu_out_gml.c.

39 {
40  LWGEOM *g;
41  char *h;
42 
44  h = lwgeom_to_gml2(g, srs, precision, prefix);
45 
46  if (strcmp(h, out))
47  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
48 
49  CU_ASSERT_STRING_EQUAL(h, out);
50 
51  lwgeom_free(g);
52  lwfree(h);
53 }
static uint8_t precision
Definition: cu_in_twkb.c:25
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
void lwfree(void *mem)
Definition: lwutil.c:244
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
char * lwgeom_to_gml2(const LWGEOM *geom, const char *srs, int precision, const char *prefix)
VERSION GML 2 takes a GEOMETRY and returns a GML2 representation.
Definition: lwout_gml.c:231

References LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_gml2(), and precision.

Referenced by out_gml_test_geoms_prefix().

Here is the call graph for this function:
Here is the caller graph for this function: