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

2012-09-19 Thread Tim Sutton
Hi On Sep 19, 2012 5:33 PM, "DanielK" wrote: > > 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 no

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()

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

2012-09-19 Thread Tim Sutton
Hi On Wed, Sep 19, 2012 at 2:36 PM, Daniel Klich wrote: > Hello, > > I am new to python and the QGIS API and writing a plugin in python to > simulate/model insect dispersal. > > I am using .ui files and Qt Designer. And i placed a QWidget on the form and > promote it to a new class: set QgsMapCan

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

2012-09-19 Thread Massimo
I have a similar problem with vector layer. See http://osgeo-org.1560.n6.nabble.com/secondary-mapCanvas-and-memory-layer-tt5001051.html and I'm still looking for a solution. Regards, Massimo -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Display-raster-layer-on-own-Map-Ca

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

2012-09-19 Thread Daniel Klich
Hello, I am new to python and the QGIS API and writing a plugin in python to simulate/model insect dispersal. I am using .ui files and Qt Designer. And i placed a QWidget on the form and promote it to a new class: set QgsMapCanvas as class name and set qgis.gui as header file. I load a ras