3. Visualise Africa Groundwater Atlas Country Hydrogeology Maps

After downloading the Africa Groundwater Atlas Country Hydrogeology map for Malawi and extracting the zip file, we can open the ESRI Shapefile in QGIS.

1. Start QGIS with a blank project.

2. Go to the Browser panel, look for the folder where you've extracted the Zip file and drag the Malawi_HG.shp layer to the map canvas.

Let's inspect the attribute table of this polygon vector layer in ESRI Shapefile format.

3. In the Layers panel click right on the Malawi_HG layer and choose Open Attribute Table.

The attribute table has two fields: MaIGLG and MaIHGComb.

The MaIGLG field gives the geology and the MaIHGComb gives the hydrogeology of the features.

4. Check the PDF file that came with the data for a detailed explanation of these attributes (AfricaGroundwaterAtlasCountryMapsUserGuide_OR19035_V1_1.pdf). You can find this file in the same folder as the Malawi_HG.shp file.

Unfortunately the data only comes with ESRI .lyr files for the legend. These can only be converted to a QGIS supported format using the SLYR tool, which is proprietary software.

Here we're going to style the geology and the hydrogeology manually, based on the colours this wiki page: http://earthwise.bgs.ac.uk/index.php/Africa_Groundwater_Atlas_Hydrogeology_Maps

5. Click on the Malawi_HG in the Layers panel and click the button to open the Layer Styling panel.

6. In the Layer Styling panel choose the Categorized renderer. For Value choose the MaIGLG field and click Classify.

7. Remove all other values by clicking it and then the button. all other values is always automatically added for the features with nodata. In this case we don't have features with nodata.

The screen now looks like this:

Styling geological map

Now we have assigned random colours. You can manually adjust the colours.

8. In the Layers panel double click on a coloured square of the legend of the Malawi_HG layer and change the colour using the Symbol Selector dialogue in the popup window.

9. After styling click right on the Malawi_HG layer in the Layers panel and choose Rename Layer.

10. Rename the layer to Geology.

11. Click right on the Geology layer in the Layers panel and now choose Duplicate Layer.

12. In the same way as in steps 9 and 10 rename this duplicate layer (Geology copy) to Hydrogeology.

13. Now apply steps 5 to 8 to style the Hydrogeology layer using the MaIHGComb field.

The result should be similar to the figure below.

Hydrogeology styled

14. Save the project. In the main menu choose Project | Save as... and call it for example malawi.qgz.

In the next section we're going to add more data from the internet to this project.