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

Posted in PyQt, QGIS, QGIS Plugins, Uncategorized

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.

The original code:

The generated code:

so in do_load_project we get False instead of “my test

Posted in PyQt, QGIS Plugins

Using threads in QGIS python plugins

Here an example on how to work with threads in a consistent and clean manner in QGIS python plugins

Posted in Python, QGIS, QGIS Plugins

QGIS: Qt5 and Python3 migration, current state

Behind the scenes a lot has happened to get ready for Qt5 and Python3. On the same codebase that is becoming the next release QGIS 2.16. This is really a great thing since we can focus work on a single

Posted in C++, GIS, Programming, Python, QGIS

Increasing the stability of processing algorithms

Processing just got a new testing framework to improve the long-term stability of this important plugin. And you can help to improve it, even if you are not a software developer! This is yet another piece in our never-stopping crusade to

Tagged with: , , , ,
Posted in C++, Programming, Python, QGIS, QGIS Plugins

Syntactic sugar for PyQGIS

PyQGIS now supports a nice new addition for handling edit sessions in layers. This way, changes get committed automatically at the end of a successful (python) edit session.

with edit(layer):
    do your changes here()

Posted in Programming, Python, QGIS

Performance for mass updating features

This post discusses how to improve the performance of pyqgis code which updates a lot of features by a factor of more than 10.

Posted in Python, QGIS, QGIS Plugins

Python support even closer

anybody has a hint?

Posted in Android QGIS, Python

Getting closer to taming the snake

very geeky but I have to post this: D/Qt (27512): src/python/qgspythonutilsimpl.cpp: 188: (runString) COMAND OK: import sys D/Qt (27512): src/python/qgspythonutilsimpl.cpp: 188: (runString) COMAND OK: import os D/Qt (27512): src/python/qgspythonutilsimpl.cpp: 188: (runString) COMAND OK: sys.path = [“/data/data/org.qgis.qgis/files/share/python”,”/data/data/org.qgis.qgis/files//python”,”/data/data/org.qgis.qgis/files//python” + “/plugins”,”/data/data/org.qgis.qgis/files/share/python/plugins”] + sys.path

Posted in Android QGIS, Python

Python support in qgis is getting there

Never been so close,  but it took the heck out of me… now lets see if after 4 days of continuous fiddling around I manage to tame the snake

Posted in Android QGIS, Python
Contact
OPENGIS.ch GmbH
Mythenstrasse 37A
8840 Einsiedeln
Switzerland

Email: info@opengis.ch
Twitter: @OPENGISch
Mobile: +41 (0)79 467 24 70
Skype: mbernasocchi
Support QField development