6.10. Geological Legends

Geological legends in QGIS can be created but the program really needs a plugin to create a geology specific style of legend. Geologists use QGIS very differently to the majority of QGIS users and this would need to be pushed by the geoscience user community. Detailed geological information, e.g., formation names, can be imported into the legend using the Legend tab in the Layer Properties > Legend tab. Note that you may have to join the geological information to the geological polygons, as in the case of GSWA geological data, before you create a more detailed legend.

../../_images/layer_prop_legend.png

In the window above, the label text has been selected using the “Set Labels from Expression” which then opens the expression builder window (below).

../../_images/set_labels_from_expression.png

The legend will be displayed in the print layout window as shown below.

../../_images/map_layout_legend.png

Work is in progress to automatically assign geological patterns and descriptions from the GSWA polygon colouring information and pattern fills with the vector data for their digital maps.

6.10.1. Adding user defined polygon colours

If the geological polygon layer is imported from ESRI or MapInfo, the styling information is lost. Some suppliers of this data create qml or qlr files to accompany the shp files to allow custom colouring. To apply custom colours, it is necessary to do a categorical style on the polygon layer based on geological code or name, and then use the rule-based renderer to edit the colour information and polygon name for each geological unit.

../../_images/layer_prop_geo.png ../../_images/edit_rule_geo.png

Don’t forget to save as “default” to save the styling information!