<div dir="ltr">Hi<div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 12:15 AM, Felix Schmidt <span dir="ltr"><<a href="mailto:felix.schmidt@uni-weimar.de" target="_blank">felix.schmidt@uni-weimar.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Same mistake with refresh() at the end.<br>
<br>
Am 05.06.2014 19:11, schrieb Rouzaud Denis:<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
self.canvasRaster.refresh() at the end ?<br>
<br>
On 05 Jun 2014, at 18:27, Felix Schmidt <<a href="mailto:felix.schmidt@uni-weimar.de" target="_blank">felix.schmidt@uni-weimar.de</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
Hello everyone,<br>
I try to load on signal, a rasterlayer to qgsmapcanvas. I try it like in<br>
the pycookbook:<br>
<br>
@QtCore.pyqtSlot()<br>
     def loadRasterImage(self):<br>
     print "slot works"<br>
         fileName = QFileDialog.getOpenFileName(<u></u>None, "historical map",<br>
".", "Image Files (*.png *.jpg *.bmp *.tiff)")<br>
         fileInfo = QFileInfo(fileName)<br>
         baseName = fileInfo.baseName()<br>
         rlayer = QgsRasterLayer(fileName, baseName)<br>
         if not rlayer.isValid():<br>
             print "Layer failed to load!"<br>
         QgsMapLayerRegistry.instance()<u></u>.addMapLayer(rlayer)<br>
     print rlayer.extent().yMinimum()<br>
     self.canvasRaster.setExtent(<u></u>rlayer.extent())<br>
     self.canvasRaster.setLayerSet( [ QgsMapCanvasLayer(rlayer) ] )<br>
<br>
self.canvasRaster is defined in the gui . I search for 8h but I dont<br>
find a solutionen, because there are no errors.<br>
<br>
It load the rasterlayer to the main program of qgis, but not in my<br>
qgsmapcanvas. it is still white.<br>
<br></blockquote></blockquote></div></div></blockquote><div><br></div><div>Is the layer loaded, showing in the legend but just not visible? Check the symbology for the layer is defined properly if this is the case.</div>

<div><br></div><div>Regards</div><div><br></div><div>Tim</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
please help me.<br>
<br>
Felix<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></blockquote>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Tim Sutton - QGIS Project Steering Committee Member<br>==============================================<br>Please do not email me off-list with technical<br>

support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>surrounding your issue will be shared with all.<br><br>Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>

==============================================</div>
</div></div>