PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void do_gml2_test ( char *  in,
char *  out,
char *  srs,
int  precision 
)
static

Definition at line 22 of file cu_out_gml.c.

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

Referenced by out_gml_test_dims(), out_gml_test_geoms(), out_gml_test_precision(), and out_gml_test_srid().

23 {
24  LWGEOM *g;
25  char *h;
26 
28  h = lwgeom_to_gml2(g, srs, precision, "gml:");
29 
30  if (strcmp(h, out))
31  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
32 
33  CU_ASSERT_STRING_EQUAL(h, out);
34 
35  lwgeom_free(g);
36  lwfree(h);
37 }
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:211
void lwfree(void *mem)
Definition: lwutil.c:190
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1706

Here is the call graph for this function:

Here is the caller graph for this function: