Ignore:
Timestamp:
2017-09-04T20:19:23+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - deprecate ILatLon#getEastNorth() so ILatLon has no dependency on Main.proj

File:
1 edited

Legend:

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

    r12630 r12725  
    7474     * Visiting call for lat/lon.
    7575     * @param latlon lat/lon
     76     * @since 12725 (public for ILatLon parameter)
     77     */
     78    public void visit(ILatLon latlon) {
     79        if (latlon != null) {
     80            visit(latlon.getEastNorth(Main.getProjection()));
     81        }
     82    }
     83
     84    /**
     85     * Visiting call for lat/lon.
     86     * @param latlon lat/lon
    7687     */
    7788    public void visit(LatLon latlon) {
    78         if (latlon != null) {
    79             visit((ILatLon) latlon);
    80         }
    81     }
    82 
    83     private void visit(ILatLon latlon) {
    84         visit(latlon.getEastNorth());
     89        visit((ILatLon) latlon);
    8590    }
    8691
     
    138143        bounds = new ProjectionBounds(new LatLon(
    139144                        Math.max(-90, minLatlon.lat() - enlargeDegree),
    140                         Math.max(-180, minLatlon.lon() - enlargeDegree)).getEastNorth(),
     145                        Math.max(-180, minLatlon.lon() - enlargeDegree)).getEastNorth(Main.getProjection()),
    141146                new LatLon(
    142147                        Math.min(90, maxLatlon.lat() + enlargeDegree),
    143                         Math.min(180, maxLatlon.lon() + enlargeDegree)).getEastNorth());
     148                        Math.min(180, maxLatlon.lon() + enlargeDegree)).getEastNorth(Main.getProjection()));
    144149    }
    145150
Note: See TracChangeset for help on using the changeset viewer.