[QGIS-trac] [Quantum GIS] #1453: WMS Layer URL is damaged when loaded via Python

Quantum GIS qgis at qgis.org
Fri Dec 12 08:36:30 EST 2008


#1453: WMS Layer URL is damaged when loaded via Python
---------------------------------------------------------+------------------
   Reporter:  hdus                                       |              Owner:  mhugent      
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.0.0
  Component:  WMS                                        |            Version:  HEAD         
   Keywords:  WMS Python                                 |   Platform_version:               
   Platform:  Linux                                      |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 I load a WMS-Layer with

 {{{self.iface.addRasterLayer(url,
 displayName,service,layerList,styleList,imageType,srs);}}}

 All parameters are defined correct. The Layer is loaded to the legend. The
 tooltip of the layerconnection shows the correct URL.

 {{{http://srsofaioi12288:8080/geoserver/wms?}}}

 After check the visibility checkbox QGIS responses with the following
 error message:

 {{{
 Could not draw Grundbuchplan because:
 WMS Server responded unexpectedly with HTTP Status Code 404 (Not Found)
 Tried URL:
 http://srsofaioi12288:80/geoserver/wms?SERVICE=WMS&SERVICE=WMS&VERSION=1.1.1&.......
 }}}

 Here you can see two strange things:

  1. Port 8080 is changed to port 80
  2. SERVICE=WMS appears twice

 Loading this WMS via WMS-Connector works without problems.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1453>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list