49 char *msg1 =
"test_mindistance2d_tolerance failed (got %g expected %g) at line %d\n";
50 char *msg2 =
"\n\ndo_test_mindistance2d_tolerance: NULL lwgeom generated from WKT\n %s\n\n";
66 distance = distancef(lw1, lw2, 0.0);
70 if ( fabs(distance - expected_res) > 0.00001 )
72 printf(msg1, distance, expected_res, line);
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
Datum distance(PG_FUNCTION_ARGS)