Bug report #8754
Wrong request URL while adding WMS layer
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.
After connection we can see the list of available layers:
Let's add first selected layer - mapvlru:
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]
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)
History
#1
Updated by Jukka Rahkonen almost 11 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 almost 11 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 almost 11 years ago
- Status changed from Open to Closed
Problem was solved by ignoring information returned by GetCapabilities request.
#4
Updated by Giovanni Manghi almost 11 years ago
- Resolution set to invalid