The first thing I thought when I saw the “Interpolated Line” symbology (I described this functionality in another post) was that it would be useful to represent drainage networks. Today, that is what we are exploring. Innovative ways to represent your river network to depict the watershed in an even more elegant and informative way, using the “Interpolated Line” functionality.
This week, I am showing you how to create custom geometries to enhance your legends on QGIS Print Layout. Specifically, how to create these geometries based on vector files that you already have. The example I will provide is how to create the Legend Patch Shape for the state of Rio Grande do Sul, in Brazil.
I use pygrib to open the files. In their documentation, they point to two ways to install pygrib, using pip or using conda. However, I could only make it work using conda. Run this in your Anaconda Prompt to install pygrib.
The good news is that using Leaflet Truesize plugin, you can add your own customized draggable polygons to the map. A map that I thought almost immediately is the representation of the draggable Brazilian states, so you could compare them to each other and to the size of other countries. And that is why this is used as an example for this tutorial.
Leaflet maps can definitely be generated from scratch. Many people and companies do that. But, because I am a QGIS enthusiast and many of my maps are already on QGIS projects, I can get the best of both worlds. I generate my basic map using as many specifications available on qgis2web as possible, and then, edit the html and the JavaScript generated by the plugin to adjust the map to my needs.
So far, so good, but then you try to change the type of map between the available options (currently, OpenLayers, Leaflet and Mapbox GL JS) QGIS freezes and you have to close the application via Windows Task Manager. I observed the occurrence on QGIS 3.20 Odense and on QGIS 3.16 Hannover, version of qgis2web 3.16.
Today QGIS 3.20 “Odense” was released! In today’s post, I will test some of my favorite features of the new version. To check all the new features and the bugs fixed, check the full Changelog of QGIS 3.20.