<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=utf-8">
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-IE;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        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;
        mso-fareast-language:EN-IE;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {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 Johannes,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks for getting back to me. In general we would use the same value for each band, so 256 or -9999. We only work, where possible with GeoTIFF, so the Internal Mask idea is a nice one I hadn’t thought of. Also
 the use of an ALPHA channel, might be an option. <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">I could be wrong, but in relation to the internal masking, I believe it can be difficult for some CAD and GI Software to recognise internal masking, I believe there’s even an issue with GeoServer, which we use
 extensively here. As you say an Alpha Band is also an option…I will need to experiment a little more!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Once again, thank you for your response!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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>
<p class="MsoNormal"><span style="color:#1F497D"><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>
<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"> Johannes Kröger (WhereGroup) <johannes.kroeger@wheregroup.com>
<br>
<b>Sent:</b> 14 January 2022 09:39<br>
<b>To:</b> Richard McDonnell <richard.mcdonnell@opw.ie>; Qgis Users List <qgis-user@lists.osgeo.org><br>
<b>Subject:</b> Re: [Qgis-user] NoData in RGB Imagery<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hey Richard,<span style="font-size:12.0pt;mso-fareast-language:EN-IE"><o:p></o:p></span></p>
<p>do you have different NODATA pixels between the three bands (R, G, B) or is it the same? If there are no differences then you can use an additional channel as mask. I would suggest you store your imagery in GeoTIFF with an "internal mask". Even posted a
 nice example of this in <a href="https://lists.osgeo.org/pipermail/gdal-dev/2014-August/039907.html">
https://lists.osgeo.org/pipermail/gdal-dev/2014-August/039907.html</a><br>
If your format supports RGBA (e.g. PNG), then that would be another way to achieve this but a nice GeoTIFF should be the best solution.<o:p></o:p></p>
<p><br>
Cheers, Hannes<o:p></o:p></p>
<div>
<p class="MsoNormal">Am 13.01.22 um 18:35 schrieb Richard McDonnell:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal">I have a general GIS query and am hoping I can get some insight from the community.<o:p></o:p></p>
<p class="MsoNormal">It relates to how we deal with pixels with no data in RGB Imagery. It seems to be typical to produce RGB imagery as 8bit with pixel values between 0 and 255, with either 0 or 255 being used as the NoDATA value. To me this is problematic,
 as there can be valid pixels within your image with 0 or 255. To me the solution is to use 16bit Imagery and to assign the NoDATA value to any value outside of the 0 – 255 range.<o:p></o:p></p>
<p class="MsoNormal">I know in DEM’s its usual to use -9999 as your NoDATA value but my question is, Is there a standardised way to deal with NoDATA in RGB?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I welcome any comments and suggestions.<o:p></o:p></p>
<p class="MsoNormal">Regards & Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal"><br>
Richard.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></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-IE"><br>
——</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-IE"><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-IE">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-IE"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-IE">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-IE"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-IE">——</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-IE"><br>
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#565148;mso-fareast-language:EN-IE">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-IE"><br>
</span><a href="https://gov.ie/opw"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-IE">https://gov.ie/opw</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-IE"><br>
<br>
——<br>
To send me files larger than 30MB, please use the link below </span><a href="https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-IE">https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-IE"><br>
<br>
Email Disclaimer: </span><a href="https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-IE">https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#004D44;mso-fareast-language:EN-IE">
<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-IE"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Qgis-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><o:p></o:p></pre>
<pre>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></pre>
<pre>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Johannes Kröger / GIS-Entwickler/-Berater<o:p></o:p></pre>
<pre>WhereGroup GmbH<o:p></o:p></pre>
<pre>Grevenweg 89<o:p></o:p></pre>
<pre>20537 Hamburg<o:p></o:p></pre>
<pre>Germany<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Tel: +49 (0)228 / 90 90 38 - 36<o:p></o:p></pre>
<pre>Fax: +49 (0)228 / 90 90 38 - 11<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a><o:p></o:p></pre>
<pre><a href="http://www.wheregroup.com">www.wheregroup.com</a><o:p></o:p></pre>
<pre>Geschäftsführer:<o:p></o:p></pre>
<pre>Olaf Knopp, Peter Stamm <o:p></o:p></pre>
<pre>Amtsgericht Bonn, HRB 9885<o:p></o:p></pre>
<pre>-------------------------------<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>---------------------------------------------<o:p></o:p></pre>
<pre>Schon gewusst?<span style="font-family:"Tahoma",sans-serif">
</span><o:p></o:p></pre>
<pre>In unserem Blog geben wir Tipps & Tricks zu<span style="font-family:"Tahoma",sans-serif">
</span> Open-Source-GIS-Software <o:p></o:p></pre>
<pre>und berichten aus unserem Experten-Alltag:<o:p></o:p></pre>
<pre><a href="https://wheregroup.com/blog/">https://wheregroup.com/blog/</a><o:p></o:p></pre>
<pre>---------------------------------------------<o:p></o:p></pre>
</div>
</div>
</body>
</html>