Changeset 11374 in josm for trunk/src/org/openstreetmap/josm/data/projection
- Timestamp:
- 2016-12-09T23:31:13+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r11042 r11374 44 44 import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference; 45 45 import org.openstreetmap.josm.io.CachedFile; 46 import org.openstreetmap.josm.tools.JosmRuntimeException; 46 47 import org.openstreetmap.josm.tools.Utils; 47 48 … … 147 148 pds = loadProjectionDefinitions("resource://data/projection/custom-epsg"); 148 149 } catch (IOException ex) { 149 throw new RuntimeException(ex);150 throw new JosmRuntimeException(ex); 150 151 } 151 152 inits = new LinkedHashMap<>(); -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java
r10212 r11374 6 6 7 7 import org.openstreetmap.josm.io.CachedFile; 8 import org.openstreetmap.josm.tools.JosmRuntimeException; 8 9 9 10 /** … … 57 58 instance.loadGridShiftFile(is, false); 58 59 } catch (IOException e) { 59 throw new RuntimeException(e);60 throw new JosmRuntimeException(e); 60 61 } 61 62 } -
trunk/src/org/openstreetmap/josm/data/projection/proj/ClassProjFactory.java
r10208 r11374 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.projection.proj; 3 4 import org.openstreetmap.josm.tools.JosmRuntimeException; 3 5 4 6 /** … … 23 25 proj = projClass.getConstructor().newInstance(); 24 26 } catch (ReflectiveOperationException e) { 25 throw new RuntimeException(e);27 throw new JosmRuntimeException(e); 26 28 } 27 29 return proj; -
trunk/src/org/openstreetmap/josm/data/projection/proj/SwissObliqueMercator.java
r10308 r11374 20 20 import org.openstreetmap.josm.data.projection.Ellipsoid; 21 21 import org.openstreetmap.josm.data.projection.ProjectionConfigurationException; 22 import org.openstreetmap.josm.tools.JosmRuntimeException; 22 23 23 24 // CHECKSTYLE.OFF: LineLength … … 108 109 while (abs(phi - prevPhi) > EPSILON) { 109 110 if (++iteration > 30) 110 throw new RuntimeException("Two many iterations");111 throw new JosmRuntimeException("Two many iterations"); 111 112 prevPhi = phi; 112 113 double s = 1 / alpha * (log(tan(PI / 4 + b / 2)) - k) + ellps.e
Note:
See TracChangeset
for help on using the changeset viewer.