<div dir="ltr">Hi,<div>I'm trying to wrap my head around how gdal handles nodata values.</div><div>In an image with this gdalinfo exceprt:</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">
Band 1 Block=512x512 Type=Byte, ColorInterp=Red</div><div style="font-family:arial,sans-serif;font-size:13px"> NoData Value=0</div><div style="font-family:arial,sans-serif;font-size:13px">Band 2 Block=512x512 Type=Byte, ColorInterp=Green</div>
<div style="font-family:arial,sans-serif;font-size:13px"> NoData Value=0</div><div style="font-family:arial,sans-serif;font-size:13px">Band 3 Block=512x512 Type=Byte, ColorInterp=Blue</div><div style="font-family:arial,sans-serif;font-size:13px">
NoData Value=0</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">and using software based on gdal (e.g. qgis), it seems that a pixel is considered </div>
<div style="font-family:arial,sans-serif;font-size:13px">nodata if any of the three pixel bands are zero (even just one).</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
I could swear I saw some gdal specific way to embed metadata</div><div style="font-family:arial,sans-serif;font-size:13px">saying "if all three bands are zero, then the pixel is nodata"</div><div style="font-family:arial,sans-serif;font-size:13px">
(pull pixel as opposed band per band treatment), but I cannot </div><div style="font-family:arial,sans-serif;font-size:13px">find it anymore.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Did I imagine it? If existing, do you have a feeling of how well</div><div style="font-family:arial,sans-serif;font-size:13px">supported that is in common software?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Cheers</div><div style="font-family:arial,sans-serif;font-size:13px">Andrea</div><div><br></div>-- <br><div dir="ltr"><div><div><div>==</div><div><div>GeoServer Professional Services from the experts! Visit</div>
<div><a href="http://goo.gl/NWWaa2" target="_blank">http://goo.gl/NWWaa2</a> for more information.</div></div><div>==</div></div><div><br></div></div><div>Ing. Andrea Aime <br></div><div>@geowolf</div><div>Technical Lead</div>
<div><br></div><div>GeoSolutions S.A.S.</div><div>Via Poggio alle Viti 1187</div><div>55054 Massarosa (LU)</div><div>Italy</div><div>phone: +39 0584 962313</div><div>fax: +39 0584 1660272</div><div>mob: +39 339 8844549</div>
<div><br></div><div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div>
<div><br></div><div>-------------------------------------------------------</div></div>
</div></div>