[Qgis-developer] New Plugin Show Hide Image

Martin Dobias wonder.sk at gmail.com
Tue Jun 9 18:51:07 EDT 2009


Hi Luiz

On Tue, Jun 9, 2009 at 1:00 PM, Luiz Motta<motta.luiz at gmail.com> wrote:
> Dear to all,
>
> I post the plugin "Image show or hide", it´s show or hide image from polygon´s
> vector layer (Grid of images) with attribute path and name local image.
>
> Link for plugin
> http://spatialserver.net/pyqgis_1.0/contributed/imgshowhide.zip
>
> I test run in Windows XP with install QGIS 1.0.2 and  1.1.0 (the
> libray python is the setup install).
>
> To make vector layer i use other plugin.
> http://spatialserver.net/pyqgis_1.0/contributed/imgboundary.zip

Great to see some more contributed plugins!


> I need synchronize layers in Map Canvas with Legend Canvas, i
> appreciate for help me.
>
> *** Example in Python Console to show the problem  Map Canvas with
> Legend Canvas: ****
> mapCan = iface.mapCanvas()
> mapRen = mapCan.mapRenderer()
> lstLyr = mapRen.layerSet()
> lstLyr.swap(0, lstLyr.count()-1)
> mapRen.setLayerSet(lstLyr)
> mapCan.refresh()

Unfortunately currently it's not possible to interact with legend
widget (it's not part of the qgis libraries), so if you do any changes
to layer set in map canvas, they won't get propagated into legend.

Martin


More information about the Qgis-developer mailing list