31 fprintf(stderr,
"\nIn: %s\nExp: %s\nObt: %s\n", in, exp,
cu_error_msg);
40 fprintf(stderr,
"\nIn: %s\nExp: %s\nObt: %s\n", in, exp, h);
41 CU_ASSERT_STRING_EQUAL(h, exp);
48 fprintf(stderr,
"\nIn: %s\nExp: %s\nObt: (null)\n", in, exp_srs);
49 CU_ASSERT_EQUAL(srs, exp_srs);
51 else if (strcmp(srs, exp_srs))
53 fprintf(stderr,
"\nIn: %s\nExp: %s\nObt: %s\n", in, exp_srs, srs);
54 CU_ASSERT_STRING_EQUAL(srs, exp_srs);
59 fprintf(stderr,
"\nIn: %s\nExp: (null)\nObt: %s\n", in, srs);
60 CU_ASSERT_EQUAL(srs, exp_srs);
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
LWGEOM * lwgeom_from_geojson(const char *geojson, char **srs)
Create an LWGEOM object from a GeoJSON representation.
void lwgeom_free(LWGEOM *geom)
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.