-
[QGIS Plugin Development] 7. Working with QGIS Vector Layers and Attribute Tables
The last implementation step ahead of us is actually placing the locations on the main QGIS canvas. This might seem like a lot of work but is actually the easiest part of our plugin. Word of advice: you might be tempted to create a Python package named qgis in your code. It is highly not…
-
[QGIS Plugin Development] 6. Form Validation, Testing, Workers
We now have a “sort of working” implementation but we still have a lot of work ahead of us as the implementation is far from being functional and usable by others. Form Validation First of all, we would like to tell the user that both text fields are mandatory. We can do this by enabling…
-
[QGIS Plugin Development] 5. Geoapify Client Integration Part One – Proof of Concept, Pandas Table Model
Now that we have an UI and are able to respond to user actions, it is now the time to integrate our Geoapify client into the plugin code. The Geoapify client consists of one simple method: This is the output we get for a prompt Abbey Road, London, United Kingdom: This is actually only the…
-
[QGIS Plugin Development] 4. PyQT and Interacting With QGIS
So far, so good. We’re now able to install our freshly created plugin to the local QGIS installation using one simple command. We can also enable the plugin in QGIS and see that it was activated. First of all, we need to design an user interface. This is best done using QT Designer. Let’s go…
-
[QGIS Plugin Development] 3. Your First Step Towards a QGIS Plugin
After making the required preparations, we can start creating the plugin prototype with one of these options: 1. Develop the plugin on greenfield and bite your way through on your own You could start right away on the greenfield with the help of the official QGIS Developer documentation. This path might be a very good…
-
[QGIS Plugin Development] 2. Setting Up Your Environment for Plugin Development
If you want to develop a plugin, it is highly recommended to know basic programming in Python and a good knowledge of the git version control system. There are also quite a few things to install and set up before you can comfortably work on your first plugin. These are the main tools you will…
-
[QGIS Plugin Development] 1. Plan Your Work
So you’ve decided to implement a functionality in QGIS which hasn’t been already covered by a plethora of QGIS plugins already available. Or perhaps the functionality does exist but you wish to extend it or add your own flavour to it if you’re fortunate enough that the plugin is publicly available. One way or another,…
-
How to Develop a QGIS Plugin
During my work at CleverFarm, I often needed to work with geospatial data managed by Czech farms. eAGRI (especially its subdivion also referred to as The Farmer Portal) is a critical source of information for many farmers in the Czech Republic in regard to the soil they manage. However, the user interface which The Farmer…