Changeset 10235 in josm for trunk/src/org/openstreetmap/josm/data/projection/proj
- Timestamp:
- 2016-05-17T02:02:30+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection/proj
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
r9992 r10235 138 138 for (i = MAXIMUM_ITERATIONS; true;) { // rarely goes over 5 iterations 139 139 if (--i < 0) { 140 throw new RuntimeException("Too many iterations");140 throw new IllegalStateException("Too many iterations"); 141 141 } 142 142 s = Math.sin(phi); … … 162 162 } 163 163 } 164 throw new RuntimeException("no convergence");164 throw new IllegalStateException("no convergence for ts="+ts); 165 165 } 166 166 -
trunk/src/org/openstreetmap/josm/data/projection/proj/AlbersEqualArea.java
r10001 r10235 126 126 rho = 0.0; 127 127 } else { 128 throw new RuntimeException();128 throw new AssertionError(); 129 129 } 130 130 } … … 184 184 } 185 185 } 186 throw new RuntimeException("no convergence for q="+qs);186 throw new IllegalStateException("no convergence for qs="+qs); 187 187 } 188 188 -
trunk/src/org/openstreetmap/josm/data/projection/proj/DoubleStereographic.java
r10001 r10235 100 100 while (abs(phi - phiprev) > EPSILON) { 101 101 if (++iteration > 10) 102 throw new RuntimeException("Too many iterations");102 throw new IllegalStateException("Too many iterations"); 103 103 phiprev = phi; 104 104 double psii = log(tan(phi/2 + PI/4) * pow((1 - e * sin(phi)) / (1 + e * sin(phi)), e/2)); -
trunk/src/org/openstreetmap/josm/data/projection/proj/PolarStereographic.java
r10001 r10235 163 163 phi0 = phi; 164 164 if (--i < 0) { 165 throw new RuntimeException("no convergence");165 throw new IllegalStateException("no convergence for x="+x+", y="+y); 166 166 } 167 167 }
Note:
See TracChangeset
for help on using the changeset viewer.