[QGIS-trac] [Quantum GIS] #2150: QgsMapCanvas.refresh() doesn't reload WMS layer

Quantum GIS qgis at qgis.org
Wed Nov 25 08:12:54 EST 2009


#2150: QgsMapCanvas.refresh() doesn't reload WMS layer
------------------------------------------------+---------------------------
   Reporter:  trapanator                        |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.4.0
  Component:  MapCanvas                         |            Version:  HEAD         
   Keywords:                                    |   Platform_version:               
   Platform:  Windows                           |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 In a plugin I add a feature to a PostGIS layer. I have another WMS raster
 layer connected to this PostGIS layer.

 If I invoke the command:


 {{{
       QgsMapCanvas.refresh()

 }}}

 it refreshes the map but not the WMS layer. A workaround is this (note:
 'e' variable is QMouseEvent type):


 {{{
      self.myCanvas.panAction(e)
      self.myCanvas.panActionEnd(QPoint (e.x(), e.y()))
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2150>
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