Changeset 52 in josm for src/org/openstreetmap/josm/data/projection
 Timestamp:
 20060214T00:52:11+01:00 (14 years ago)
 Location:
 src/org/openstreetmap/josm/data/projection
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

src/org/openstreetmap/josm/data/projection/Epsg4263.java
r51 r52 16 16 17 17 public void xy2latlon(GeoPoint p) { 18 p.lat = Math.round(p.y*MAX_SERVER_PRECISION)/MAX_SERVER_PRECISION;19 p.lon = Math.round(p.x*MAX_SERVER_PRECISION)/MAX_SERVER_PRECISION;18 p.lat = p.y; 19 p.lon = p.x; 20 20 } 21 21 
src/org/openstreetmap/josm/data/projection/Mercator.java
r51 r52 22 22 p.lon = p.x*180/Math.PI; 23 23 p.lat = Math.atan(Math.sinh(p.y))*180/Math.PI; 24 // round values to maximum server precision25 p.lon = Math.round(p.lon*MAX_SERVER_PRECISION)/MAX_SERVER_PRECISION;26 p.lat = Math.round(p.lat*MAX_SERVER_PRECISION)/MAX_SERVER_PRECISION;27 24 } 28 25
Note: See TracChangeset
for help on using the changeset viewer.