Skip to content
LiveStats is a plugin for QGis
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LSaboutWindow.py
LSbar.py
LScomputers.py
LSeditor.py
LSmain.py
LSwidgetChooseField.py
LSwidgetChooseLayer.py
Makefile
README.html
README.md
__init__.py
about.png
icon.png
metadata.txt
plugin_upload.py
resources.qrc
resources_rc.py
screenshot.png

README.md

LiveStats

Disclaimer : use at your own risk, the plugin is in developpement. In case of problem, open your QGis file in a plain text editor, and remove everything between <LiveStats> and </LiveStats>.

Description

LiveStats allows to display simple statistics about vector data in small toolbars that provide real-time feedback.

Screenshot

Usage

Click on the LiveStats button to add a LiveStat. A configuration dialog will pop up. Once configured, the statistic will be displayed at the bottom of the main window. You can move it around if you like and even display it as a floating palette.

Click on the LiveStats palette to modify it's settings again. You can add as many LiveStats palettes as you like. You can move them around, and dock/undock them.

The LiveStats automatically update when the selection changes (if "Selection only" is checked), when the active layer changes (if layer is set to "[active]"), when modified (by clicking on it) or when the project is opened.

You can show/hide a LiveStats as you would do for any ToolBar (eg. by right-clicking in an empty space of the interface). You can toggle all LiveStat's visibiliy via the plugin menu (show/hide all LiveStats).

Configuration

  • Name : Enter the display name of the statistic. You can check the box on the right to have an automatic name.
  • Layer : Choose which layer the statistic will be based on. By choosing [active], the statistic will dynamically update depending on the current active layer.
  • Field : Choose which field will be computed.
  • Filter : Enter an SQL "where" expression to filter the features. Leave this empty if you don't want to filter the features.
  • Function : Choose which statistic function you want to use. Note that "count" simply counts the items, includings Null values (this will be changed).
  • Selection only : Check this if you want to compute statistics of the selection only. Leaving this unchecked will compute the statistics of the whole layer.
  • Precision... : Enter the number of decimals, the suffix (usefull to specify a display unit), the factor (usefull to convert to a specific unit) and whether thousands separators should be shown
  • Delete : Press this to delete the LiveStat. This can't be undone !
  • Copy : If this is checked when clicking OK, the LiveStat will be copied into a new one, and the original one will remain untouched.

Feedback / bugs

Please send bugs and ideas on the issue tracker : https://github.com/olivierdalang/liveStats/issues

Or send me some feedback at : olivier.dalang@gmail.com

Version history

  • 2013-01-01 - version 0.1 : first version (still very sketchy)
  • 2013-01-02 - version 0.11 : fixed a bug with locale
  • 2013-01-03 - version 0.2 :
    • added "where filters"
    • ability to clone a LiveStat toolbar
  • 2013-01-15 - version 0.3 :
    • added help (via the plugin menu)
    • store floating palettes positions
    • added hide/show all
    • added delete button
    • fixed a small bug where there was a NoGeometry error under certain circumstances
    • fixed clone checkbox staying checked
  • 2014-04-29 - version 0.4 :
    • adapted to QGis 2.0 (thanks to Richard Duivenvoorde who contributed on this)
    • added Concat and ConcatUnique computers
    • formatting supports negative precision (rounding)

Contribute

Help is welcome ! There's a serie of issues and ideas on the github repository : https://github.com/olivierdalang/liveStats.git

You can’t perform that action at this time.