PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void do_gml3_unsupported ( char *  in,
char *  out 

Definition at line 151 of file cu_out_gml.c.

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

Referenced by out_gml_test_geoms().

152 {
153  LWGEOM *g;
154  char *h;
155  int opts = LW_GML_IS_DIMS;
158  h = lwgeom_to_gml3(g, NULL, 0, opts, "", NULL);
160  if (strcmp(cu_error_msg, out))
161  fprintf(stderr, "\nGML 3 - In: %s\nOut: %s\nTheo: %s\n",
162  in, cu_error_msg, out);
164  CU_ASSERT_STRING_EQUAL(out, cu_error_msg);
167  lwfree(h);
168  lwgeom_free(g);
169 }
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
Definition: liblwgeom.h:1706
void cu_error_msg_reset()
#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
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]

Here is the call graph for this function:

Here is the caller graph for this function: