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

Definition at line 39 of file cu_out_geojson.c.

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

Referenced by out_geojson_test_geoms().

40 {
41  LWGEOM *g;
42  char *h;
43 
45  h = lwgeom_to_geojson(g, NULL, 0, 0);
46 
47  if (strcmp(cu_error_msg, out))
48  fprintf(stderr, "\nIn: %s\nOut: %s\nTheo: %s\n",
49  in, cu_error_msg, out);
50 
51  CU_ASSERT_STRING_EQUAL(out, cu_error_msg);
53 
54  lwfree(h);
55  lwgeom_free(g);
56 }
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
void cu_error_msg_reset()
char * lwgeom_to_geojson(const LWGEOM *geo, char *srs, int precision, int has_bbox)
Takes a GEOMETRY and returns a GeoJson representation.
Definition: lwout_geojson.c:35
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: