Ignore:
Timestamp:
2018-08-11T17:29:48+02:00 (16 months 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/tools/Geometry.java

    r13807 r14120  
    3737import org.openstreetmap.josm.data.osm.visitor.paint.relations.MultipolygonCache;
    3838import org.openstreetmap.josm.data.projection.Projection;
     39import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    3940import org.openstreetmap.josm.data.projection.Projections;
    4041
     
    164165                                }
    165166
    166                                 Node newNode = new Node(Main.getProjection().eastNorth2latlon(intersection));
     167                                Node newNode = new Node(ProjectionRegistry.getProjection().eastNorth2latlon(intersection));
    167168                                Node intNode = newNode;
    168169                                boolean insertInSeg1 = false;
     
    10531054        double area = 0;
    10541055        double perimeter = 0;
    1055         Projection useProjection = projection == null ? Main.getProjection() : projection;
     1056        Projection useProjection = projection == null ? ProjectionRegistry.getProjection() : projection;
    10561057
    10571058        if (!nodes.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.