- Timestamp:
- 2022-01-02T19:23:32+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/proj/AbstractProj.java
r16630 r18353 5 5 import org.openstreetmap.josm.data.projection.ProjectionConfigurationException; 6 6 import org.openstreetmap.josm.tools.CheckParameterUtil; 7 import org.openstreetmap.josm.tools.Logging; 7 8 8 9 /** … … 170 171 // Iteratively solve equation (7-9) from Snyder. 171 172 final double cphi2(final double ts) { 173 if (Double.isNaN(ts)) { 174 Logging.warn("Trying to project invalid NaN coordinates"); 175 return Double.NaN; 176 } 172 177 final double eccnth = 0.5 * e; 173 178 double phi = (Math.PI/2) - 2.0 * Math.atan(ts);
Note:
See TracChangeset
for help on using the changeset viewer.