Hello<br><br>I have a problem with the geotiff (GTiff) driver.<br><br>I create a 4-bands raster image in a c++ program. The fourth band was considered as an alpha band in the geotiff image (actually, it is near infrared : NIR)<br>

<br>$ gdalinfo new_geotiff.tif<br>Driver: GTiff/GeoTIFF<br>Files: new__geotiff.tif<br>Size is 100, 100<br>(...)<br>Band 1 Block=100x20 Type=Byte, ColorInterp=Red<br>  Mask Flags: PER_DATASET ALPHA <br>Band 2 Block=100x20 Type=Byte, ColorInterp=Green<br>

  Mask Flags: PER_DATASET ALPHA <br>Band 3 Block=100x20 Type=Byte, ColorInterp=Blue<br>  Mask Flags: PER_DATASET ALPHA <br>Band 4 Block=100x20 Type=Byte, ColorInterp=Alpha<br><br>How to remove the Color interpretation &#39;alpha&#39; and the mask flags ?<br>

<br>I want to have :<br><br>
Band 1 Block=100x20 Type=Byte, ColorInterp=Red<br>
Band 2 Block=100x20 Type=Byte, ColorInterp=Green<br>
Band 3 Block=100x20 Type=Byte, ColorInterp=Blue<br>
Band 4 Block=100x20 Type=Byte, ColorInterp=Undefined<br><br>I already tryed :<br>pDS-&gt;GetRasterBand(4)-&gt;SetColorInterpretation(GCI_Undefined );<br><br>I tryed too to set the creation option : &quot;ALPHA&quot; to &quot;NO&quot;.<br>

<br><br>Thanks in advance for any help.<br><br>Nicky<br>