Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
qgis python plugin to loop over visible layers
Python
Tree: f82c496a3a

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
icons
.gitattributes
Makefile
README
__init__.py
icon.png
loopvisiblelayers-0.2.0.zip
loopvisiblelayers-0.3.0.zip
loopvisiblelayers.py
loopvisiblelayerswidget.py
metadata.txt
resources.qrc
resources_rc.py
tmp.txt
ui_loopvisiblelayerswidget.py
ui_loopvisiblelayerswidget.ui

README

============================================================
README

This QGis plugin allows for layers or groups to be displayed in a loop.

The plugin interface is a small dock widget which should appear in the left dock when the plugin is activated.

The "Select Group" selection allows to define the source for the layers to loop.
Select <Visible Layers> to select visible layers (the ones checked in the Layers legend).
Select <Root> to use the top-level items (layers or groups) in the Layers legend.
If there are any groups in the layers legend, these should appear in the selector.
Currently the selector is not refreshed automatically, so use the Refresh button when needed. 

Select the loop delay in seconds.

The Controls are Play/Pause, Stop, Next.


============================================================
TODO

- fix nested group handling - nested groups are added to loop list unnecessarily
- use one-shot timers instead of programmed one
- create rendering/canvas cache for each loop, instead of rendering each time 
  - is this possible with qgis api?
  - maybe not necessary when layer caching is activated (show warning if not activated)
- update valuetool values when looping

- update the groups list and relations automatically (patches in my QGis repos. fix this)
  - get this pulled to qgis
- modify qgis so new groups have unique names (group1,group2,...) - done in my repos.
- is there a way to add a context menu item to the legend to call this tool?

- check redraw of vector layers when user changes visibility in the layers legend (control rendering order?)
- check blank page when looping over groups with vector layers

============================================================
CREDITS
- icons are from Fatcow "Farm-Fresh Web Icons" CC3 licence (http://creativecommons.org/licenses/by/3.0/us/)
- refresh button from qgis


============================================================
CHANGELOG
0.1    initial release
0.1.1  add missing files
0.1.2  added README ; Makefile fixes
0.2.0  2012/03/15
       - freeze canvas before changing layer visibility 
       - add auto-update of groups (reqs. QGis fixes) 
       - add status bar
       - keep group selection when updating group selector
       - check for duplicate group names
       - update UI stretching behaviour when docked
0.3.0  2012/03/16
       - workaround for lack of signals in legendInterface: update group info on enterEvent()
       - remove refresh button and alert the user if selection is outdated on play (both are prob. not needed)
       - fix canvas not redrawn in qgis 1.7.4 after thaw
       - do not update canvas when main window is inactive or if the dock is hidden
       - add forward button, which can invert the loop direction
       - allow delay=0, only use forward and back buttons to show next item
       - update UI
       - change loop widget to a QWidget and nest into an ordinary QDockWidget, remove "save location" stuff
0.3.1  2012/03/16
       - UI tweaks: change buttons to QToolButtons and remove frames, add spacers in all directions
Something went wrong with that request. Please try again.