For todays lab we will be looking at how to publish interactive maps for end user consumption. Think of this as a blend between cartography and WMS/WFS. Making PDF maps is great in that is gives us a lot of control in how the data is presented and what story we are telling with the data, however it has two major limitations, if data changes our maps are out of date, and we can only get one perspective of the data per map. Last week we looked at WMS and WFS, these provided a great way to share our data with other GIS professionals and even apply sytling through our QGIS project, but with the caviate that the end user requires at least a rudamentary understanding of GIS.
inside map.html put this code, on line 20 replace the ip address and path to your map (it’s still in last weeks chat):
use flask run again, and browse to https://127.0.0.1:5000/map
Note if your lines are too thing open QGIS make the lines thicker save and zoom in and out on the map.
One more note, if you have lots of anoying Q’s floating about
sudo nano /etc/apache2/sites-enabled/001-qgis-server.conf # Comment out FcgidInitialEnv QGIS_PLUGINPATH "/opt/qgis-server/plugins" # Save and close the file sudo systemctl restart apache2