22{
24 char * h = NULL;
25 char * srs = NULL;
26 size_t size;
27
29 if ( ! g )
30 {
31 fprintf(stderr,
"\nIn: %s\nExp: %s\nObt: %s\n", in, exp,
cu_error_msg);
32 CU_ASSERT(g != NULL);
33 return;
34 }
35
37
38 if (strcmp(h, exp))
39 {
40 fprintf(stderr, "\nIn: %s\nExp: %s\nObt: %s\n", in, exp, h);
42 }
43 else
44 {
46 }
47
48 if ( exp_srs )
49 {
50 if ( ! srs )
51 {
52 fprintf(stderr, "\nIn: %s\nExp: %s\nObt: (null)\n", in, exp_srs);
53 CU_ASSERT_EQUAL(srs, exp_srs);
54 }
55 else if (strcmp(srs, exp_srs))
56 {
57 fprintf(stderr, "\nIn: %s\nExp: %s\nObt: %s\n", in, exp_srs, srs);
59 }
60 }
61 else if ( srs )
62 {
63 fprintf(stderr, "\nIn: %s\nExp: (null)\nObt: %s\n", in, srs);
64 CU_ASSERT_EQUAL(srs, exp_srs);
65 }
66
70}
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
#define ASSERT_STRING_EQUAL(o, e)
void lwgeom_free(LWGEOM *geom)
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
LWGEOM * lwgeom_from_geojson(const char *geojson, char **srs)
Create an LWGEOM object from a GeoJSON representation.