<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Grant,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">What I meant is that, using the Field calculation you can create new fields for each thing you want to style. In your case you want a field for colour.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Using the field calculator you can set up a script, for example…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">CASE <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  WHEN "class" = 'Igneous' THEN '#fc9403'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  WHEN "class" = 'Sedimentary ' THEN '#03fc56'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  WHEN "class" = 'Igneous rocks' THEN '#7303fc'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  WHEN "class" = 'Metamorphic' THEN '#fc03e7'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  ELSE '#fc0303'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">END<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This will then assign a colour to each feature, which you can assign using the
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This can be done for a lot of the styling options as I mentioned before.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">As I said below, and as you mentioned in your message, this
<b>won’t be reflected in the Legend</b>, only in the Map. The above probably isn’t the solution you are looking for.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Another suggestion is to look into creating a set of Standard Styles stored centrally. When you load a Layer into Qgis you can load these styles as required, which will apply the rules you previously set.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">You can also create default styles for a particular layer and every time you load the layer into a Project the style is automatically loaded with the layer. You can do this from in the Layer Properties and going
 down to the <b>Style</b> Button selecting <b>Save as default</b><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kind Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><br>
Richard<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<table style="FONT-SIZE: 9pt; HEIGHT: 321px; FONT-FAMILY: Arial, sans-serif; WIDTH: 500px; LINE-HEIGHT: 15px" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial,sans-serif; WIDTH: 500px; COLOR: #004d44; PADDING-BOTTOM: 6px">
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44"><br>
——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">Richard McDonnell MSc GIS, FME Certified Professional</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44"><i>FRM Data Management</i></span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">Oifig na nOibreacha Poiblí</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Office of Public Works</span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #565148">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">M +353 87 688 5964 T +353 46 942 2409</span><br>
<a href="https://gov.ie/opw">https://gov.ie/opw</a><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——<br>
To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie<br>
</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Email Disclaimer: https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
</span></td>
</tr>
</tbody>
</table>
<table style="FONT-SIZE: 9pt; FONT-FAMILY: Arial, sans-serif; WIDTH: 420px; LINE-HEIGHT: 15px" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="FONT-SIZE: 9pt; FONT-FAMILY: Arial,sans-serif; WIDTH: 420px; COLOR: #004d44; PADDING-BOTTOM: 6px">
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44"><br>
——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">MSc GIS, FME Certified Professional</span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #004d44">Oifig na nOibreacha Poiblí</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Office of Public Works</span><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; FONT-WEIGHT: bold; COLOR: #565148">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">——</span><br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #565148">M +353 87 688 5964 T +353 46 942 2409</span><br>
<font color="#565148"><a href="https://www.opw.ie">https://https://gov.ie/opw</a></font><br>
<br>
<span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">——<br>
</span><span style="FONT-FAMILY: Arial, sans-serif; COLOR: #004d44">Email Disclaimer:
<a href="https://www.opw.ie/en/disclaimer/">https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a></span>
</td>
</tr>
</tbody>
</table>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-IE"> boxerg@iinet.net.au <boxerg@iinet.net.au>
<br>
<b>Sent:</b> 12 December 2022 10:24<br>
<b>To:</b> Richard McDonnell <richard.mcdonnell@opw.ie><br>
<b>Subject:</b> RE: [Qgis-user] Colouring Geological Maps<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-AU">Hi Richard,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">I can colourise the polygons using the color(rgb) algorithm but this does not flow back to the layers panel or the map layout legend.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">What do you mean “storing..as a set of attribute values”?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">Thanks for your assistance,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">Cheers Grant<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-AU">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-AU"> Richard McDonnell <<a href="mailto:richard.mcdonnell@opw.ie">richard.mcdonnell@opw.ie</a>>
<br>
<b>Sent:</b> Monday, 12 December 2022 6:18 PM<br>
<b>To:</b> <a href="mailto:boxerg@iinet.net.au">boxerg@iinet.net.au</a>; <a href="mailto:qgis-user@lists.osgeo.org">
qgis-user@lists.osgeo.org</a><br>
<b>Subject:</b> RE: [Qgis-user] Colouring Geological Maps<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Morning,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’m not sure if this is a solution for you, but have you considered using attribution and storing your styling requirements as a set of attribute values. You can do this for Fill Colour, Stroke Thickness, Font,
 Sizes…etc…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">You could build a graphic modeller to add the attribution to your data and then have a single default style, which has all the Styling Variables set to use the new attribution.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The only issue with this is that you won’t generate a legend…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Kind Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Richard<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="0" style="width:375.0pt">
<tbody>
<tr>
<td width="500" style="width:375.0pt;padding:0cm 0cm 4.5pt 0cm">
<p class="MsoNormal" style="line-height:11.25pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
——</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
<b>Richard McDonnell MSc GIS, FME Certified Professional</b><br>
<i>FRM Data Management</i><br>
<br>
——<br>
<b>Oifig na nOibreacha Poiblí</b><br>
Office of Public Works<br>
<br>
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">——</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">M +353 87 688 5964 T +353 46 942 2409</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
<a href="https://gov.ie/opw">https://gov.ie/opw</a><br>
<br>
——<br>
To send me files larger than 30MB, please use the link below <a href="https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie">
https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie</a><br>
<br>
Email Disclaimer: <a href="https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/">
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a> <o:p>
</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="display:none;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="0" style="width:315.0pt">
<tbody>
<tr>
<td width="420" style="width:315.0pt;padding:0cm 0cm 4.5pt 0cm">
<p class="MsoNormal" style="line-height:11.25pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
——</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
<b>MSc GIS, FME Certified Professional</b><br>
<br>
——<br>
<b>Oifig na nOibreacha Poiblí</b><br>
Office of Public Works<br>
<br>
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">——</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU">M +353 87 688 5964 T +353 46 942 2409</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-AU"><a href="https://www.opw.ie">https://https://gov.ie/opw</a></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-AU"><br>
<br>
——<br>
Email Disclaimer: <a href="https://www.opw.ie/en/disclaimer/">https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a>
<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-IE">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-IE"> QGIS-User <<a href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>Grant Boxer via QGIS-User<br>
<b>Sent:</b> 11 December 2022 08:48<br>
<b>To:</b> <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
<b>Subject:</b> [Qgis-user] Colouring Geological Maps<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-AU">I am trying to find an easier way of colouring a geological map. The only way I can find to colourise the polygons in both the map window and layers panel – and hence the displayed legend – is to use the rule-based rendering
 option. Each rule has to be manually styled. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">Is there a way to get QGIS to interrogate a text file for styling information? I can’t seem to find one anywhere in the algorithms. Aiming to use this in a graphical modeller to automate colourising geological maps. I
 can use a fixed qml file but that has to be done for each individual map unless you have a wide range of set styles.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">Cheers Grant, Perth WA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>