Ignore:
Timestamp:
2006-02-14T00:52:11+01:00 (14 years ago)
Author:
imi
Message:
  • fixed data merge (sometime set modified unnecessary)
  • fixed rounding (now compare with epsilon instead of round everything)
  • Fix: upload does not clear all changes if only some thing got uploaded
Location:
src/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/projection/Epsg4263.java

    r51 r52  
    1616
    1717        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;
    2020        }
    2121
  • src/org/openstreetmap/josm/data/projection/Mercator.java

    r51 r52  
    2222                p.lon = p.x*180/Math.PI;
    2323                p.lat = Math.atan(Math.sinh(p.y))*180/Math.PI;
    24                 // round values to maximum server precision
    25                 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;
    2724        }
    2825
Note: See TracChangeset for help on using the changeset viewer.