TransWikia.com

WMS not working in QGIS

Geographic Information Systems Asked by kasparlov on March 30, 2021

When I try to load this WMS: https://wms.geo.admin.ch/?VERSION=1.0.0 in QGIS, I get the following error message:"mswmsloadgetmapparams() image handling error. unsupported output format". In ArcMap the WMS works without issues. Any idea how to fix this?

2 Answers

I just tested the WMS service in QGIS 3.16 and got an error message for version 1.0.0 when trying to load the layers. If you change the link to https://wms.geo.admin.ch/?VERSION=1.1.0 the layers just work fine in QGIS.

Correct answer by Omegon on March 30, 2021

From a quick look at the capabilities files version 1.0.0 supports only <Format><PNG /><JPEG /><SVG /></Format> while version 1.1.0 supports:

  <Format>image/jpeg</Format>
  <Format>image/gif</Format>
  <Format>image/png</Format>
  <Format>image/pnga</Format>
  <Format>image/png; mode=32bit</Format>
  <Format>image/tiff</Format>
  <Format>image/png; mode=8bit</Format>
  <Format>image/vnd.jpeg-png</Format>
  <Format>image/vnd.jpeg-png8</Format>
  <Format>application/x-pdf</Format>
  <Format>image/svg+xml</Format>
  <Format>application/vnd.google-earth.kml+xml</Format>
  <Format>application/vnd.google-earth.kmz</Format>
  <Format>application/x-protobuf</Format>
  <Format>application/json</Format>

which is much more likely what QGIS sends, to be sure you could try connecting with both end points and then using the Network Activity plugin to check the actual format requested.

Answered by Ian Turton on March 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP