]> granicus.if.org Git - postgis/commitdiff
Increase precision.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 5 Oct 2009 14:37:57 +0000 (14:37 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 5 Oct 2009 14:37:57 +0000 (14:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4593 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_geodetic.c

index d38b9dc99bfb124c22044fc1db3eb1fb8a485945..bebddac55f983473c5fc999f30e54c0c12c0c61a 100644 (file)
@@ -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);