51 char *msg1 =
"test_mindistance2d_tolerance failed (got %g expected %g) at line %d\n";
52 char *msg2 =
"\n\ndo_test_mindistance2d_tolerance: NULL lwgeom generated from WKT\n %s\n\n";
75 if ( fabs(
distance - expected_res) > accepted_error )
77 printf(msg1,
distance, expected_res, line);
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define FLAGS_SET_SOLID(flags, value)
static double distance(double x1, double y1, double x2, double y2)