Changeset 5017 in josm for trunk/src/org/openstreetmap/josm/io/imagery/WMSGrabber.java
- Timestamp:
- 2012-02-22T19:17:45+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/WMSGrabber.java
r4857 r5017 31 31 import org.openstreetmap.josm.data.imagery.GeorefImage.State; 32 32 import org.openstreetmap.josm.data.imagery.ImageryInfo; 33 import org.openstreetmap.josm.data.projection.Mercator;34 33 import org.openstreetmap.josm.gui.MapView; 35 34 import org.openstreetmap.josm.gui.layer.WMSLayer; … … 86 85 int wi, int ht) throws MalformedURLException { 87 86 String myProj = Main.getProjection().toCode(); 88 if (!info.getServerProjections().contains(myProj) && (Main.getProjection() instanceof Mercator)) {87 if (!info.getServerProjections().contains(myProj) && "EPSG:3857".equals(Main.getProjection().toCode())) { 89 88 LatLon sw = Main.getProjection().eastNorth2latlon(new EastNorth(w, s)); 90 89 LatLon ne = Main.getProjection().eastNorth2latlon(new EastNorth(e, n)); … … 99 98 } 100 99 101 // Bounding box coordinat s have to be switched for WMS 1.3.0 EPSG:4326.100 // Bounding box coordinates have to be switched for WMS 1.3.0 EPSG:4326. 102 101 // 103 102 // Background:
Note:
See TracChangeset
for help on using the changeset viewer.