<div dir="ltr">Hi List,
<div>  I have a question about setting a value as "noData" in GeoTIFFs.</div><div><br></div><div>I'm creating a Geotiff with this two stage process (mosaicing a lot of tiles together):</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">gdalbuildvrt -hidenodata -srcnodata 255 -vrtnodata 255 -input_file_list tiff_list.txt 255.vrt</blockquote>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

gdal_translate -of GTiff -co TILED=YES -co BIGTIFF=YES -co COMPRESS=JPEG  -co JPEG_QUALITY=80 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co PHOTOMETRIC=YCBCR 255.vrt 255mask.tif</blockquote></blockquote><div><br></div><div>The resultant image is fine, but when I access it, both via ArcGIS and QGIS it says that there is no noData value set.</div>

<div><br></div><div>I've tried reading into it and came across this - <a href="http://www.gdal.org/frmt_gtiff.html">http://www.gdal.org/frmt_gtiff.html</a> - but it requires a deeper level of the GeoTIFF library than I have to make much sense of it.</div>

<div><br></div><div>I did see "GDAL_TIFF_INTERNAL_MASK" and tried to set it to true (using -co and --config), but GDAL just complained about it not being a valid configuration option.</div><div><br></div><div>Can GeoTiffs have a noData value in them that applications will see and honour? If so, can I set it in GDAL?</div>

<div>It's not critically important, more nice-to-have and also trying to understand the format better</div><div><br></div><div>Thanks,</div><div>Jonathan</div></div>

<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span>