PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_gml3_test_opts()

static void do_gml3_test_opts ( char *  in,
char *  out,
char *  srs,
int  precision,
int  opts 
)
static

Definition at line 55 of file cu_out_gml.c.

56 {
57  LWGEOM *g;
58  char *h;
59 
61  h = lwgeom_to_gml3(g, srs, precision, opts, "gml:", NULL);
62 
63  if (strcmp(h, out))
64  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
65 
66  CU_ASSERT_STRING_EQUAL(h, out);
67 
68  lwgeom_free(g);
69  lwfree(h);
70 }
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
char * lwgeom_to_gml3(const LWGEOM *geom, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:717
void lwfree(void *mem)
Definition: lwutil.c:244
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
opts
Definition: ovdump.py:44

References LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_gml3(), ovdump::opts, and precision.

Referenced by out_gml_test_srid().

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