Changeset 2114 in josm for trunk/src/org/openstreetmap/josm/data/projection/Mercator.java
- Timestamp:
- 2009-09-13T13:12:14+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Mercator.java
r2017 r2114 24 24 public EastNorth latlon2eastNorth(LatLon p) { 25 25 return new EastNorth( 26 p.lon()*Math.PI/180, 27 Math.log(Math.tan(Math.PI/4+p.lat()*Math.PI/360))); 26 p.lon()*Math.PI/180, 27 Math.log(Math.tan(Math.PI/4+p.lat()*Math.PI/360))); 28 28 } 29 29 30 30 public LatLon eastNorth2latlon(EastNorth p) { 31 31 return new LatLon( 32 Math.atan(Math.sinh(p.north()))*180/Math.PI, 33 p.east()*180/Math.PI); 32 Math.atan(Math.sinh(p.north()))*180/Math.PI, 33 p.east()*180/Math.PI); 34 34 } 35 35 … … 49 49 { 50 50 return new Bounds( 51 new LatLon(-85.05112877980659, -180.0), 52 new LatLon(85.05112877980659, 180.0)); 51 new LatLon(-85.05112877980659, -180.0), 52 new LatLon(85.05112877980659, 180.0)); 53 } 54 55 public double getDefaultZoomInPPD() { 56 // This will set the scale bar to about 100 km 57 return 0.000158; 53 58 } 54 59 }
Note:
See TracChangeset
for help on using the changeset viewer.
