Ignore:
Timestamp:
2018-08-11T17:29:48+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate all Main methods related to projections. New ProjectionRegistry class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r13669 r14120  
    1010import java.util.function.Predicate;
    1111
    12 import org.openstreetmap.josm.Main;
    1312import org.openstreetmap.josm.data.coor.EastNorth;
    1413import org.openstreetmap.josm.data.coor.LatLon;
     
    1615import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor;
    1716import org.openstreetmap.josm.data.projection.Projecting;
     17import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    1818import org.openstreetmap.josm.tools.CheckParameterUtil;
    1919import org.openstreetmap.josm.tools.Utils;
     
    114114            invalidateEastNorthCache();
    115115        } else if (eastNorth != null) {
    116             LatLon ll = Main.getProjection().eastNorth2latlon(eastNorth);
     116            LatLon ll = ProjectionRegistry.getProjection().eastNorth2latlon(eastNorth);
    117117            this.lat = ll.lat();
    118118            this.lon = ll.lon();
    119119            this.east = eastNorth.east();
    120120            this.north = eastNorth.north();
    121             this.eastNorthCacheKey = Main.getProjection().getCacheKey();
     121            this.eastNorthCacheKey = ProjectionRegistry.getProjection().getCacheKey();
    122122        } else {
    123123            this.lat = Double.NaN;
Note: See TracChangeset for help on using the changeset viewer.