Bug report #18633

QGIS3: WMTS detection doesn't work

Added by Tobias Wendorff over 5 years ago.

Category:Web Services clients/WMS
Affected QGIS version:3.0.0 Regression?:No
Operating System:Microsoft Windows 7, 64-bit Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26521


When adding this WMTS to QGIS, it's not detected as WMTS and adding fails:


Having a look into the datastream using a proxy, this request is used:


Oops, so the GetCapabilities of WMS is used, not the one of WMTS.
This one works:


Since there's no switch in WMS/WMTS panel to select what kind of service it us, you should use a heuristic:
  • if there's "wmts/WMTS" in the url, request /1.0.0/WMTSCapabilities.xml OR
  • try normal WMS GetCapabilities first, on error request WMTS capabilities.

Perhaps you could use a heuristic, which detects "WMTS" in the URL and then doe

This bug appears at least in build d48818b492.

Also available in: Atom PDF