This repository contains some useful PyQgis scripts. Most of the scripts are related to drawing various elements on a Qgis map.
Install the latest version of QGIS. This script works on Qgis 3.14.16.
- Open the Qgis application.
- Open the map (XYZ Tiles -> OpenStreetMap -> Add layer to project).
- Open the Python console in Qgis.
- Click 'Show editor'.
- Copy and paste the code in the Python console.
- Edit the code if needed.
- Send feedback. Thank you!
The script will draw rectangles on a Qgis map. Users need to define a starting GNSS point, the size of rectangles, and the number of rectangles. Also, the matrix for rectangles colors must be provided. The full description and examples can be found in the Medium article.
The result will be something like this:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.