Changeset 9535 in josm for trunk/test/unit
- Timestamp:
- 2016-01-19T00:43:46+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java
r9498 r9535 116 116 testProj("lcc", EPS, "+lat_1=87 +lat_2=83.6 +lat_0=85.43"); 117 117 testProj("somerc", EPS, "+lat_0=47"); 118 testProj("tmerc", 1e-5, "+bounds=-2.5,-89,2.5,89"); 118 119 testProj("tmerc", 2e-3, ""); 119 120 testProj("sterea", EPS, "+lat_0=52"); 121 testProj("aea", EPS, "+lat_1=27.5 +lat_2=35 +lat_0=18"); 122 testProj("stere", 1e-5, "+lat_0=-90 +lat_ts=-70"); 123 testProj("stere", 1e-5, "+lat_0=90 +lat_ts=90"); 124 testProj("omerc", EPS, "+lat_0=4 +lonc=115 +alpha=53 +no_uoff +gamma=53.130 +bounds=112,4,116,7"); 120 125 121 126 if (error2) { … … 137 142 } 138 143 Bounds b = p.getWorldBoundsLatLon(); 144 double maxDist = 0; 145 LatLon maxLatLon = null; 139 146 for (int i = 0; i < NUM_IT; i++) { 140 147 LatLon ll1 = random(b); … … 145 152 if (dist > eps) { 146 153 error2 = true; 147 text2 += id + ": dist " + dist + " at " + ll1 + "\n"; 148 return; 154 if (dist > maxDist) { 155 maxDist = dist; 156 maxLatLon = ll1; 157 } 149 158 } 159 } 160 if (maxDist > 0) { 161 text2 += id + ": dist " + maxDist + " at " + maxLatLon + "\n"; 150 162 } 151 163 }
Note:
See TracChangeset
for help on using the changeset viewer.