Ignore:
Timestamp:
2015-07-08T20:59:09+02:00 (9 years ago)
Author:
wiktorn
Message:
  • added axis definition to ESPG projections definition, where it's not default (i.e. North/East)
  • added switchXY boolean in Projection interface
  • WMTS and WMS (1.3.0) uses now switchXY when doing requests against servers
  • better error reporting when there are problems with parsing the WMTS TileSource

Addresses: #10623

Now http://webgis.linz.at/WMTS/1.0.0/getCapabilities.xml should work.

Wallonie services still being debugged.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSource.java

    r8540 r8584  
    139139        if (baseUrl.toLowerCase().contains("crs=epsg:4326")) {
    140140            switchLatLon = true;
    141         } else if (baseUrl.toLowerCase().contains("crs=") && "EPSG:4326".equals(myProjCode)) {
    142             switchLatLon = true;
     141        } else if (baseUrl.toLowerCase().contains("crs=")) {
     142            // assume WMS 1.3.0
     143            switchLatLon = Main.getProjection().switchXY();
    143144        }
    144145        String bbox;
Note: See TracChangeset for help on using the changeset viewer.