QGIS mapping styles for UK habitats
Last updated 17th December 2015 to incorporate Phase 1 style files from James Watkins at Oxford Brookes. (Link at foot of page.)
A common requirement for ecologists using GIS is the ability to style habitat polygons to common standards (such as they exist). Phase 1 habitat mapping is still widely practised in the UK and is an unusual classification in that mapping styles were published along with the original classification. The phase 1 manual, with the specification of these styles, can be downloaded from the JNCC website.
The original Phase 1 classification was published in gentler times when questions of styling concerned themselves with issues such as which brand of pencils to use. Nowadays with GIS, for better of for worse, we are compelled to discuss RGB values and 'style files' instead.
Many ecologists from the 'old' days would probably agree that a hand-coloured Phase 1 map is a thing of beauty and that the GIS equivalent doesn't come close. They may be right - producing an aesthetically pleasing habitat map using GIS is not as easy as you might think. Rendering styles varies considerably from one GIS system to another and reproducing styles such as those used in the original Phase 1 classification can be very difficult.
Nevertheless there have been several attempts to come up with Phase 1 styles for GIS that reflect, to some extent, the original schema whilst being, at the same time, practical for application by a dumb machine. I've had a look on the Internet to see what, if anything, was available for QGIS and I found a few useful resources which I am sharing here.
I found two QGIS style files (QML files) on Github which may be useful for those looking for something to style Phase 1 maps in QGIS. (You can download a copy of all QML files described in this article from a link at the end.) The first Phase 1 QML file was provided by Shaun Lewis of the Brecon Beacons National Park who acquired them from Natural Resources Wales. The second Phase 1 QML file was created by Anita Graser and Mike Evans. In December 2015 James Watkins of Oxford Brookes University emailed me to draw my attention to some QML style files for Phase 1 that they have made available (look under the question 'How can I add the JNCC symbology to my exports in QGIS?')
The style files implement a number of different technical approaches to styling in QGIS - the NRW one is 'rule-based' whilst Anita Graser's and those of Oxford Brookes are 'categorized'; but the technical implementation is unimportant and both work equally well. Another similarity is that neither assigns a style to every possible Phase 1 habitat code - for example all miss out some higher level codes such as 'A1' and 'A1.1' - assuming that habitats (woodland in the case of these two) will be classified with greater precision (e.g. A1.1.1 or A1.1.2). And the NRW file, for example, only codes open water at the higher levels. So if you want to use these QML files for your own purposes, then you may have to build on them.
The differences and limitations of each of these style files are evident from the slide show below and will reflect the purposes for which they were designed. For example the codes included in the NRW style file probably reflect the particular way that Phase 1 was applied for the Phase 1 habitat survey of Wales.

Comments
dan.carpenter (not verified)
Tue, 29/11/2016 - 10:06
Permalink
Phase 1 style - changing the attribute
psybreeze (not verified)
Mon, 27/11/2017 - 14:21
Permalink
QML file upload
bobblehat (not verified)
Wed, 19/12/2018 - 14:33
Permalink
As above from psybreeze - how