Changeset 3479 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2010-08-29T14:55:25+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java
r3473 r3479 20 20 */ 21 21 ProjData[] data = { 22 new ProjData("Zimmerwald", d(7,27,54.983506), d(46,52,37.540562), 947.149, 602030.680, 191775.030, 897.915),23 new ProjData("Chrischona", d(7,40,6.983077), d(47,34, 1.385301), 504.935, 617306.300, 268507.300, 456.064),24 new ProjData("Pfaender", d(9,47,3.697723), d(47,30,55.172797), 1089.372, 776668.105, 265372.681, 1042.624),25 new ProjData("La Givrine", d(6,6,7.326361), d(46,27,14.690021), 1258.274, 497313.292, 145625.438, 1207.434),26 new ProjData("Monte Generoso", d(9,1,16.389053), d(45,55,45.438020), 1685.027, 722758.810, 87649.670, 1636.600) };22 new ProjData("Zimmerwald", d(7,27,54.983506), d(46,52,37.540562), 947.149, 602030.680, 191775.030, 897.915), 23 new ProjData("Chrischona", d(7,40,6.983077), d(47,34, 1.385301), 504.935, 617306.300, 268507.300, 456.064), 24 new ProjData("Pfaender", d(9,47,3.697723), d(47,30,55.172797), 1089.372, 776668.105, 265372.681, 1042.624), 25 new ProjData("La Givrine", d(6,6,7.326361), d(46,27,14.690021), 1258.274, 497313.292, 145625.438, 1207.434), 26 new ProjData("Monte Generoso", d(9,1,16.389053), d(45,55,45.438020), 1685.027, 722758.810, 87649.670, 1636.600) }; 27 27 28 28 private double d(double deg, double min, double sec) { 29 29 return deg + min / 60. + sec / 3600.; 30 30 } 31 32 private class ProjData {31 32 private static class ProjData { 33 33 public String name; 34 34 public LatLon ll; … … 52 52 } 53 53 assertTrue(errs, errs.length() == 0); 54 } 54 } 55 55 56 56 @Test … … 130 130 assertTrue("Berne", Math.abs(ll.lon() - (7.0 + 26.0 / 60 + 19.076595154147 / 3600)) < 0.00001); 131 131 } 132 132 133 133 { 134 134 EastNorth en = new EastNorth(700000.0, 100000.0); … … 142 142 143 143 /** 144 * Send and return should have less than 2mm of difference. 144 * Send and return should have less than 2mm of difference. 145 145 */ 146 146 @Test … … 185 185 assertTrue("Berne", Math.abs(en.north() - en2.north()) < 0.002); 186 186 } 187 187 188 188 { 189 189 EastNorth en = new EastNorth(700000.0, 100000.0);
Note:
See TracChangeset
for help on using the changeset viewer.