Nov 6, 2013
When writing plugins or scripts it is often necessary to get information about the paths QGIS is using. For example, if we are writing a plugin that uses Python templates to create output based on user actions, we need to know the path to our installed plugin so we can find the templates. Fortunately the API provides an easy way to get at the information; here are a few examples:
We can get a summary of some paths used in QGIS using showSettings
print QgsApplication.showSettings() Application state: QGIS_PREFIX_PATH env var: Prefix: /dev1/apps/qgis Plugin Path: /dev1/apps/qgis/lib/qgis/plugins Package Data Path: /dev1/apps/qgis/share/qgis Active Theme Name: default Active Theme Path: :/images/themes/default/ Default Theme Path: :/images/themes/default/ SVG Search Paths: /dev1/apps/qgis/share/qgis/svg/ /home/gsherman/.qgis2//svg/ User DB Path: /dev1/apps/qgis/share/qgis/resources/qgis.db
These paths are from my development install of QGIS on a Linux box; yours will be different.
The showSettings method is not really useful in a script or plugin since it returns a string containing line returns and tab characters. It's mainly useful for debugging and development.
From within a plugin, you can get its path using
import os plugin_path = os.path.dirname(os.path.realpath(__file__))
Aug 25, 2013
Nominations for the QGIS PSC closed at 00:00 UTC on August 25, 2013 .
With only one nominee for each role, the PSC unanimously moved to accept each without election.
The QGIS PSC welcomes new members Anita Graser, Richard Duivenvoorde, and Jürgen Fischer.
The PSC is now composed of:
The new PSC members begin their terms immediately.
Aug 6, 2013
The QGIS Project Steering Committee (PSC) has announced a call for nominations to fill three vacant positions:
Nominations are open until August 24, 2013. For details on the PSC, vacancies, and how to nominate someone, see the Call for Nominations August 2013.
Apr 17, 2013
Do you remember this?
If so, you've been using QGIS a long time...
But you could use it handily on a 640x480 display.
Mar 18, 2013
The Script Runner plugin allows you to manage and execute a collection of scripts in QGIS to automate tasks and perform custom processing.
Version 0.6 of Script Runner has been released and includes these changes:Read More