Changeset 6334 in josm for trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
- Timestamp:
- 2013-10-27T04:06:10+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r5554 r6334 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.projection; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.io.BufferedReader; … … 10 8 import java.util.Collection; 11 9 import java.util.HashMap; 12 import java.util.LinkedHashMap;13 import java.util.List;14 10 import java.util.Map; 15 11 import java.util.Map.Entry; … … 68 64 { 69 65 EastNorth en = p.latlon2eastNorth(new LatLon(lat, lon)); 70 String error = String.format("%s (%s): Projecting latlon(%s,%s): \n" +71 " expected: eastnorth(%s,%s), \n" +72 " but got: eastnorth(%s,%s)! \n",66 String error = String.format("%s (%s): Projecting latlon(%s,%s):%n" + 67 " expected: eastnorth(%s,%s),%n" + 68 " but got: eastnorth(%s,%s)!%n", 73 69 p.toString(), code, lat, lon, east, north, en.east(), en.north()); 74 70 double EPSILON = 1e-3; // 1 mm accuracy … … 79 75 { 80 76 LatLon ll = p.eastNorth2latlon(new EastNorth(east, north)); 81 String error = String.format("%s (%s): Inverse projecting eastnorth(%s,%s): \n" +82 " expected: latlon(%s,%s), \n" +83 " but got: latlon(%s,%s)! \n",77 String error = String.format("%s (%s): Inverse projecting eastnorth(%s,%s):%n" + 78 " expected: latlon(%s,%s),%n" + 79 " but got: latlon(%s,%s)!%n", 84 80 p.toString(), code, east, north, lat, lon, ll.lat(), ll.lon()); 85 81 double EPSILON = Math.toDegrees(1e-3 / 6378137); // 1 mm accuracy (or better)
Note:
See TracChangeset
for help on using the changeset viewer.