Re: [Qgis-developer] Display raster layer on own Map Canvas

2012-09-19 Thread DanielK
Tim Sutton-4 wrote >> I load a raster layer, set canvas color and so on. But the layer only >> displays if i use QgsMapLayerRegistry.instance().addMapLayer(self.layer). >> Without these code line my plugin only displays the rubber band, but not >> the >> raster layer. But if i use ...addMapLayer()

[Qgis-developer] Refresh canvas does not work

2012-09-19 Thread DanielK
t;Info", str( self.layer.type() ) ) time.sleep(3) self.canvas.scene().removeItem(r) Is there any way to refresh the canvas without leaving the method startTest() or displaying this QMessageBox ? best regards, DanielK -- View this message in context: http://osgeo-org