Bug report #12432
WMTS extent of TileMatrixSet as extent of layer
|Category:||Web Services clients/WMS|
|Affected QGIS version:||2.8.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20603|
QGIS changed behaviour of zooming to WMTS layer recently. The TileMatrixSet extent is wrongly used as the extent of the layer for the "Zoom to layer" functionality.
It is confusing and annoying for users - as any non-world map is not visible without manual zooming-in with a help of another base map.
It is a usability regression bug. It probably appeared on 2.6 for the first time. In the QGIS versions before (from 1.9+, 2.0, 2.2 and 2.4) everything was OK and as expected.
To reproduce the problem click on the:
"Layer"->"Add Layer"->"Add WMS/WMTS Layer..."
add this WMTS server:
and choose layer "grandcanyon".
Expected is that you see the preview of the layer - instead you see white area.
See this step-by-step guide for expected behaviour with another test layer and screenshots in the individual steps:
The problem is in the step 8. - where the map does not appear - because QGIS zooms always to the whole world and not to the layers's WGS84BoundingBox which is now ignored.
The layer is so small that it is practically invisible.
The same problem happens with any layer exposed via MapServer, GeoServer or ArcGIS Server - so it is quite critical.
QGIS must parse from the WMTS Capabilities document and extract the WGS84BoundingBox and use the information from this field for the "Zoom to layer" functionality.
Layers with coverage of the whole world are not affected by this bug. For example "nasa" layer from the test WMTS server above.
The problem was described at QuantumGIS-user mailing list: