Bug report #8754

Wrong request URL while adding WMS layer

Added by Basil Titovchenko over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Web Services clients/WMS
Affected QGIS version:2.0.1 Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:17464

Description

I've added new WMS connection to our WMS server http://wms.map.vl.ru/service.

New connection to WMS service

After connection we can see the list of available layers:

Connecting, got layers list

Let's add first selected layer - mapvlru:

Adding selected layer

By the way, can you set up default image encoding to PNG, not GIF? Thank you!

I've got error:

Map request failed [error:Error downloading http://wms.map.vl.ru/mapproxy/service?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-180,-85.05112877979999553,180,85.05112877979999553&SRS=EPSG:4326&WIDTH=1217&HEIGHT=575&LAYERS=mapvlru&STYLES=&FORMAT=image/png&DPI=72&MAP_RESOLUTION=72&FORMAT_OPTIONS=dpi:72&TRANSPARENT=TRUE - server replied: Not Found url:http://wms.map.vl.ru/mapproxy/service?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=-180,-85.05112877979999553,180,85.05112877979999553&SRS=EPSG:4326&WIDTH=1217&HEIGHT=575&LAYERS=mapvlru&STYLES=&FORMAT=image/png&DPI=72&MAP_RESOLUTION=72&FORMAT_OPTIONS=dpi:72&TRANSPARENT=TRUE]

Error message

So my question is: why you are adding /mapproxy/ to request URL? My MapProxy service don't support such request and I don't know why it should.

(See screenshots)

screenshot1.png - New connection to WMS service (44.4 KB) Basil Titovchenko, 2013-10-02 09:39 PM

screenshot2.png - Connecting, got layers list (67.7 KB) Basil Titovchenko, 2013-10-02 09:39 PM

screenshot3.png - Adding selected layer (68.3 KB) Basil Titovchenko, 2013-10-02 09:39 PM

screenshot4.png - Error message (39.6 KB) Basil Titovchenko, 2013-10-02 09:39 PM

vlmaps.png (905 Bytes) Basil Titovchenko, 2013-10-02 09:39 PM

History

#1 Updated by Jukka Rahkonen over 10 years ago

My bet is that your server is advertising that GetMap URL in its GetCapabilities. Check the "Ignore GetMap URI reported in capabilities" box and you should be fine. Of course the best thing to do is to correct that on your MapProxy config but I am not sure how it is done. If I remember right .../mapproxy/service? is the URL what you get when MapProxy is installed with the defaults.

#2 Updated by Basil Titovchenko over 10 years ago

jratike80 - wrote:

My bet is that your server is advertising that GetMap URL in its GetCapabilities. Check the "Ignore GetMap URI reported in capabilities" box and you should be fine.

Thank you, it works. Will search for an corresponding option in MapProxy configuration.

#3 Updated by Basil Titovchenko over 10 years ago

  • Status changed from Open to Closed

Problem was solved by ignoring information returned by GetCapabilities request.

#4 Updated by Giovanni Manghi over 10 years ago

  • Resolution set to invalid

Also available in: Atom PDF