<div dir="ltr">Hi<div><br><div>I think I found a bug in gdaldem color-relief (tested on gdal 2.4.4 and 3.1.0).</div><div>I'm trying to make a color-relief with the attached dtm file (see attached a micro sample d.tif).</div><div>The dtm has no "nodata" value set.</div><div>The following commands produce a very different output, although the difference between the input palettes is just an added nv line which shouldn't make a difference as the input has no ndv value.</div><div>It seems that gdal is treating the "nv" value as 0 and colors the value 0 as black accordingly.<br></div><div><br></div><div>gdaldem color-relief d.tif c.txt c.tif -CO COMPRESS=DEFLATE<br></div><div>gdaldem color-relief d.tif c_nv.txt c_nv.tif -CO COMPRESS=DEFLATE</div><div><br></div><div><div>c_nv.txt:</div><div>200 red<br>-200 green<br>nv black<br></div><div></div><div><br></div>Should I open a bug report or am I missing something here?</div><div><br></div><div>Kind regards,</div><div>Idan</div></div></div>