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

Definition at line 56 of file cu_out_gml.c.

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

Referenced by out_gml_test_srid().

57 {
58  LWGEOM *g;
59  char *h;
60 
62  h = lwgeom_to_gml3(g, srs, precision, opts, "gml:", NULL);
63 
64  if (strcmp(h, out))
65  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
66 
67  CU_ASSERT_STRING_EQUAL(h, out);
68 
69  lwgeom_free(g);
70  lwfree(h);
71 }
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
char * lwgeom_to_gml3(const LWGEOM *geom, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:711

Here is the call graph for this function:

Here is the caller graph for this function: