[gdal-dev] TIFFFetchDirectory:Sanity check on directory count failed
Matt.Wilkie at yukon.ca
Matt.Wilkie at yukon.ca
Thu Jul 8 09:32:10 PDT 2021
Related to my previous question today, what is the nature of "TIFFFetchDirectory:Sanity check on directory count failed" error?
:: gdal_translate -co compress=zstd -co predictor=yes -co level=17 -co bigtiff=yes -of cog -a_nodata 0 Finlayson9488_SP7_08Aug2017_150cm.rgb-nir.vrt out\Finlayson9488_SP7_08Aug2017_150cm.rgb-nir.tif
Input file size is 41114, 22580
0...10...20ERROR 1: TIFFFetchDirectory:Sanity check on directory count failed, this is probably not a valid IFD offset
ERROR 1: TIFFReadDirectory:Failed to read directory at offset 16879620
...30...40...50...60...70...80...90...100 - done.
The translate run finished successfully and `gdalinfo -mm ...` reports no errors on the output file structure. Visually the image appears intact. (Is scanning for minmax the best way to test for a valid file? I've been using it that way for years but maybe it's not best practice.)
Matt Wilkie
Geomatics Developer & Administrator
Environment | Technology, Innovation and Mapping
T 867-667-8133 | Yukon.ca<http://yukon.ca/>
Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210708/647551ea/attachment-0001.html>
More information about the gdal-dev
mailing list