PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ do_gml3_test()

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

Definition at line 72 of file cu_out_gml.c.

73{
74 LWGEOM *g;
75 char *h;
76 int opts = LW_GML_IS_DIMS;
77 if ( is_geodetic ) opts |= LW_GML_IS_DEGREE;
78
80 h = lwgeom_to_gml3(g, srs, precision, opts, "gml:", NULL);
81
82 if (strcmp(h, out))
83 fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
84
85 CU_ASSERT_STRING_EQUAL(h, out);
86
87 lwgeom_free(g);
88 lwfree(h);
89}
static uint8_t precision
Definition cu_in_twkb.c:25
#define LW_GML_IS_DEGREE
For GML3 only, declare that datas are lat/lon.
Definition liblwgeom.h:1650
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1138
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2060
void lwfree(void *mem)
Definition lwutil.c:242
#define LW_GML_IS_DIMS
Macros for specifying GML options.
Definition liblwgeom.h:1648
char * lwgeom_to_gml3(const LWGEOM *geom, const char *srs, int precision, int opts, const char *prefix, const char *id)
Definition lwout_gml.c:716
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition lwin_wkt.c:905

References LW_GML_IS_DEGREE, LW_GML_IS_DIMS, LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_gml3(), and precision.

Referenced by out_gml_test_dims(), out_gml_test_geodetic(), 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: