<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Grant,</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I'm not sure I understand your question, or at least the context in detail.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
This depends on how the grid colours are defined in QGIS.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
If the grid is of elevation data, pixel values are elevations (heights/depths) then to get colours applied you must be applying a colour map to the grid which assigns different colours to different elevation values. Applying the same colour map to your vector
contours should give the same colours assigned to the same values in the grid.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
If you are not already aware of it, QGIS can import colour maps from cpt-city & colour brewer, both of which have a very wide range of predefined colour maps.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Choose "Create new color ramp" in the QGIS layer Symbology->color ramp properties.</div>
<div class="elementToProof" id="Signature">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div class="elementToProof" style="margin-right: 0px; margin-left: 0px; font-family: Calibri, Arial, Helvetica, sans-serif;">
Brent Wood<br>
<br>
Principal Technician, Fisheries<br>
NIWA<br>
DDI: +64 (4) 3860529</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> QGIS-User <qgis-user-bounces@lists.osgeo.org> on behalf of Grant Boxer via QGIS-User <qgis-user@lists.osgeo.org><br>
<b>Sent:</b> Sunday, August 3, 2025 15:35<br>
<b>To:</b> qgis-user@lists.osgeo.org <qgis-user@lists.osgeo.org><br>
<b>Subject:</b> [Qgis-user] Colourising contour lines</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Aptos}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Aptos",sans-serif}
span.x_EmailStyle17
{font-family:"Aptos",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-size:11.0pt}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-AU" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">I would like to apply colours to vector contour lines that would be derived from a coloured grid of the same data. Anyone have any thoughts on how this is best done?</p>
<p class="x_MsoNormal">Cheers Grant</p>
<p class="x_MsoNormal"> </p>
</div>
</div>
<br>
<div style="margin-bottom: 10px; line-height: 1.2;"><b>Brent Wood </b><br>
<span style="color: #1822f8;">Principal Technician - GIS and Spatial Data Management
<br>
Programme Leader - Environmental Information Delivery</span>
<div style="width: 100%; white-space: normal; word-break: keep-all;">+64-4-386-0529
</div>
301 Evans Bay Parade Hataitai Wellington New Zealand<br>
Earth Sciences New Zealand </div>
<div style="border-bottom: solid 3px #1822F8; background-color: black !important; height: 42px; width: 100%; align-items: center;">
<a href="https://earthsciences.nz"><img src="https://webstatic.earthsciences.nz/static/logo/earth-sciences-signature.png" alt="Earth Sciences New Zealand" style="height: 42px; margin-right: 15px;"></a>
</div>
<div style="border-bottom: solid 1px #1822F8; width: 100%; margin-top: 10px; padding: 0px 0px 10px 0px; font-size: 8pt; font-family: Aptos">
The Institute of Geological and Nuclear Sciences Limited and the National Institute of Water and Atmospheric Research Limited joined to become the New Zealand Institute for Earth Science Limited. We are known as Earth Sciences New Zealand. For more information
on the Earth Sciences transition <a href="https://niwa.co.nz/about-niwa/science-sector-reforms">
click here</a>.<br>
<br>
<b>Notice:</b> This email may contain information which is confidential and/or subject to copyright, and may not be used, published or redistributed without the prior written consent of Earth Sciences New Zealand. If you are not the intended recipient, please
immediately notify the sender and delete the email and any attachments. Any opinion or views expressed in this email are those of the individual sender and may not represent those of Earth Sciences New Zealand.<br>
<br>
For information about how we process data and monitor communications please see our
<a href="https://niwa.co.nz/about-niwa/privacy-policy">privacy policy</a>. </div>
</body>
</html>