PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void do_gml3_test_prefix ( char *  in,
char *  out,
char *  srs,
int  precision,
int  is_geodetic,
const char *  prefix 
)
static

Definition at line 92 of file cu_out_gml.c.

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

Referenced by out_gml_test_geoms_prefix().

93 {
94  LWGEOM *g;
95  char *h;
96  int opts = LW_GML_IS_DIMS;
97 
98  if ( is_geodetic ) opts |= LW_GML_IS_DEGREE;
99 
101  h = lwgeom_to_gml3(g, srs, precision, opts, prefix, NULL);
102 
103  if (strcmp(h, out))
104  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n", in, h, out);
105 
106  CU_ASSERT_STRING_EQUAL(h, out);
107 
108  lwgeom_free(g);
109  lwfree(h);
110 }
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
#define LW_GML_IS_DIMS
Macros for specifying GML options.
Definition: liblwgeom.h:1358
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
#define LW_GML_IS_DEGREE
For GML3 only, declare that datas are lat/lon.
Definition: liblwgeom.h:1360

Here is the call graph for this function:

Here is the caller graph for this function: