Changeset 17502 in josm for trunk/src/org
- Timestamp:
- 2021-02-21T09:07:46+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSource.java
r15739 r17502 19 19 import org.openstreetmap.josm.data.coor.EastNorth; 20 20 import org.openstreetmap.josm.data.projection.Projection; 21 import org.openstreetmap.josm.data.projection.ProjectionRegistry;22 21 import org.openstreetmap.josm.gui.layer.WMSLayer; 23 22 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 57 56 private final Map<String, String> headers = new ConcurrentHashMap<>(); 58 57 private final String date; 59 private final boolean switchLatLon;58 private final boolean belowWMS130; 60 59 61 60 /** … … 88 87 // [1] https://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::4326&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:4326 89 88 // CHECKSTYLE.ON: LineLength 90 if (baseUrl.toLowerCase(Locale.US).contains("crs=epsg:4326")) { 91 switchLatLon = true; 92 } else if (baseUrl.toLowerCase(Locale.US).contains("crs=")) { 93 // assume WMS 1.3.0 94 switchLatLon = ProjectionRegistry.getProjection().switchXY(); 95 } else { 96 switchLatLon = false; 97 } 89 belowWMS130 = !baseUrl.toLowerCase(Locale.US).contains("crs="); 98 90 } 99 91 … … 133 125 break; 134 126 case "bbox": 135 replacement = getBbox(zoom, tilex, tiley, switchLatLon);127 replacement = getBbox(zoom, tilex, tiley, !belowWMS130 && getTileProjection().switchXY()); 136 128 break; 137 129 case "w":
Note:
See TracChangeset
for help on using the changeset viewer.