MalaGIS

Sharing GIS Technologies, Resources and News.

How to Automatically Run a Python Script on QGIS Startup

In the previous article titled "Displaying Selected Layer Count in QGIS with PyQGIS - MalaGIS", the author introduced a method to quickly view the number of selected layers using QGIS's Python API. However, if you need this functionality, you must open QGIS, then open the Python Console, locate the saved Python script file, and run it every single time. Although this process is simple, it can become tedious after repeated use. So, is there a way to automatically run a Python script when QGIS starts up? The author searched online and finally found a temporarily viable method to share today.

more >>

Displaying Selected Layer Count in QGIS with PyQGIS

When working with numerous layers in QGIS, it is often necessary to select multiple layers simultaneously for operations. However, with a large number of layers, it becomes difficult to quickly discern exactly how many are selected—don't worry, you can easily solve this by writing a small tool with PyQGIS!

Today, we share two methods to display the count of selected layers in real-time. These methods are straightforward to implement, with clear code, and can be tried by those in need.

more >>

Copyright © 2020-2025 MalaGIS Drive by Typecho & Lingonberry Sitemap

Back to top