From: Paul Ramsey Date: Mon, 5 Oct 2009 14:37:57 +0000 (+0000) Subject: Increase precision. X-Git-Tag: 1.5.0b1~417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36e52b4ce1f8902f389c16feea16455c8e7d0b02;p=postgis Increase precision. git-svn-id: http://svn.osgeo.org/postgis/trunk@4593 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_geodetic.c b/liblwgeom/cunit/cu_geodetic.c index d38b9dc99..bebddac55 100644 --- a/liblwgeom/cunit/cu_geodetic.c +++ b/liblwgeom/cunit/cu_geodetic.c @@ -317,9 +317,9 @@ void test_edge_intersection(void) point_rad2deg(&g); #if 0 printf("\n"); - printf("LINESTRING(%.8g %.8g, %.8g %.8g)\n", e1.start.lon, e1.start.lat, e1.end.lon, e1.end.lat); - printf("LINESTRING(%.8g %.8g, %.8g %.8g)\n", e2.start.lon, e2.start.lat, e2.end.lon, e2.end.lat); - printf("g = (%.9g %.9g)\n", g.lon, g.lat); + printf("LINESTRING(%.15g %.15g, %.15g %.15g)\n", e1.start.lon, e1.start.lat, e1.end.lon, e1.end.lat); + printf("LINESTRING(%.15g %.15g, %.15g %.15g)\n", e2.start.lon, e2.start.lat, e2.end.lon, e2.end.lat); + printf("g = (%.15g %.15g)\n", g.lon, g.lat); printf("rv = %d\n", rv); #endif CU_ASSERT_DOUBLE_EQUAL(g.lon, 0.0, 0.00001); @@ -332,9 +332,9 @@ void test_edge_intersection(void) point_rad2deg(&g); #if 0 printf("\n"); - printf("LINESTRING(%.8g %.8g, %.8g %.8g)\n", e1.start.lon, e1.start.lat, e1.end.lon, e1.end.lat); - printf("LINESTRING(%.8g %.8g, %.8g %.8g)\n", e2.start.lon, e2.start.lat, e2.end.lon, e2.end.lat); - printf("g = (%.9g %.9g)\n", g.lon, g.lat); + printf("LINESTRING(%.15g %.15g, %.15g %.15g)\n", e1.start.lon, e1.start.lat, e1.end.lon, e1.end.lat); + printf("LINESTRING(%.15g %.15g, %.15g %.15g)\n", e2.start.lon, e2.start.lat, e2.end.lon, e2.end.lat); + printf("g = (%.15g %.15g)\n", g.lon, g.lat); printf("rv = %d\n", rv); #endif CU_ASSERT_DOUBLE_EQUAL(g.lat, 0.0, 0.00001);