Changeset 9579 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-01-23T14:11:05+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/proj/SwissObliqueMercator.java
r9124 r9579 43 43 private double b0; 44 44 private double k; 45 private double phi0; 45 46 46 47 private static final double EPSILON = 1e-11; … … 55 56 56 57 private void initialize(double lat_0) { 57 doublephi0 = toRadians(lat_0);58 phi0 = toRadians(lat_0); 58 59 kR = sqrt(1 - ellps.e2) / (1 - (ellps.e2 * pow(sin(phi0), 2))); 59 60 alpha = sqrt(1 + (ellps.eb2 * pow(cos(phi0), 4))); … … 118 119 @Override 119 120 public Bounds getAlgorithmBounds() { 120 return new Bounds(-85, -179, 85, 179, false); 121 if (phi0 > 0) { 122 return new Bounds(-10, -40, 85, 40, false); 123 } else { 124 return new Bounds(-85, -40, 10, 40, false); 125 } 121 126 } 122 127 }
Note:
See TracChangeset
for help on using the changeset viewer.