Bug report #9132

WMTS GetCapabilities actually asks for WMS

Added by Jonathan Moules about 9 years ago. Updated about 9 years ago.

Affected QGIS version:2.0.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:worksforme
Crashes QGIS or corrupts data:No Copied to github as #:17768


I've set my WMTS to use:


When I click "connect" it makes the following request to the server:

Note that the SERVICE it is requesting is "WMS". I'm amazed it works with servers as the spec clearly says "Character String type, not empty
SHALL be "WMTS"" and of clients "... parameter SHALL be implemented by all clients, using specified value"


#1 Updated by Jonathan Moules about 9 years ago

In fact, looking at the spec further, it seems the server should be returning a 400 error to that request. (InvalidParameterValue).

#2 Updated by Jürgen Fischer about 9 years ago

  • Resolution set to worksforme
  • Status changed from Open to Closed

Use http://wppgeog3/geoserver/gwc/service/wmts?SERVICE=WMTS, if you want WMTS.

#3 Updated by Jonathan Moules about 9 years ago

Yes, but you can't expect users to do that. Most don't understand OGC service URL's. If the servers were actually compliant there would be lots of questions on the mailing list asking why WMTS doesn't work.

Assuming there's no other way to differentiate between WMS and WMTS given they're both in the same dialog, I'd suggest the solution to this bug would be to have a radiobutton where the user choses which service they want to use.

Also available in: Atom PDF