PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ do_gml2_test()

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

Definition at line 21 of file cu_out_gml.c.

22 {
24  lwvarlena_t *v = lwgeom_to_gml2(g, srs, precision, "gml:");
25 
26  ASSERT_VARLENA_EQUAL(v, out);
27 
28  lwgeom_free(g);
29  lwfree(v);
30 }
static uint8_t precision
Definition: cu_in_twkb.c:25
#define ASSERT_VARLENA_EQUAL(v, s)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1155
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2114
lwvarlena_t * lwgeom_to_gml2(const LWGEOM *geom, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:920
void lwfree(void *mem)
Definition: lwutil.c:242
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:905

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

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

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