QGIS2 compatibility plugin

Lately I’ve been spending time porting a bigger plugin from QGIS 2.8 to 3 while maintaining 2.8 compatibility. You can find it at https://github.com/opengisch/qgis2compat/ and http://plugins.qgis.org/plugins/qgis2compat/ One code to rule them all. My target was to have to edit the source code as little as possible to simulate a lazy Read more…

Updating PyQt signals that use lambda in QGIS with 2to3

Just for the sake of documenting things, when running qgis 2to3 on a plugin I encountered a tricky situation regarding signals. MYQGISDIR/scripts/2to3 -f signals -w my/plugin/path The original code: extra_arg = „my test argument“ QObject.connect( action, SIGNAL( „triggered()“), lambda extra_arg=my_arg: show_extra_arg(extra_arg)) def do_load_project(extra_arg): print extra_arg # „my test argument“ The Read more…

InaSAFE 1.0 Launched

End October after a heavy development sprint, the InaSAFE team (which consists of developers from around the world, funded by AUSAID and The World Bank / GFDRR) released inaSAFE 1.0 at the AMCDRR, a high level conference for disaster risk reduction in Asia. During the same event, inaSAFE was even demonstrated to the President of Indonesia.