Spatial Galaxy

Posts

  • 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:

    • QgsApplication.pluginPath(): location of core plugins
    • QgsApplication.prefixPath(): location where QGIS is installed
    • QgsApplication.qgisSettingsDirPath(): location of user settings
    • QgsApplication.iconsPath(): location of icons used in QGIS

    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__))

    From The PyQGIS Programmer's Guide.

  • Aug 25, 2013

    Nominations for the QGIS PSC closed at 00:00 UTC on August 25, 2013 [1].

    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:

    • Chair - Gary Sherman
    • Community Advisor - Otto Dassau
    • Design Advisor - Anita Graser
    • Financial and Marketing Advisor - Paolo Cavallini
    • Infrastructure Manager - Richard Duivenvoorde
    • Release Manager - Jürgen Fischer
    • Technical Advisor - Marco Hugentobler
    • Testing/QA Manager - Tim Sutton

    The new PSC members begin their terms immediately.

    [1] http://hub.qgis.org/projects/quantum-gis/wiki/CallforNominationsAugust2013

  • Aug 6, 2013

    The QGIS Project Steering Committee (PSC) has announced a call for nominations to fill three vacant positions:

    • Design Advisor
    • Infrastructure Manager
    • Release Manager

    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?

    QGIS of Yesteryear

    If so, you've been using QGIS a long time...

    • OGR and PostGIS support
    • No raster support
    • Three widgets on the Symbology tab
    • No symbology in the legend

    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

Page: 3 of 19