Bug report #18633

QGIS3: WMTS detection doesn't work

Added by Tobias Wendorff over 2 years ago.

Status:Open
Priority:Normal
Assignee:-
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

Description

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

http://sgx.geodatenzentrum.de/wmts_topplus_web_open

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

http://sgx.geodatenzentrum.de/wmts_topplus_web_open?SERVICE=WMS&REQUEST=GetCapabilities

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

http://sgx.geodatenzentrum.de/wmts_topplus_web_open/1.0.0/WMTSCapabilities.xml

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