DEM-Tools icon indicating copy to clipboard operation
DEM-Tools copied to clipboard

multiband TIFFs not working on MacOS

Open NelsonMinar opened this issue 13 years ago • 1 comments

The multiband slope-and-aspect TIFFs generated by hillfarm-seed.py are corrupt on MacOS. I've tried various versions of libtiff. 3.9.5 built in Homebrew (the default version) hangs in Mapnik in error handling code via libboost. Homebrewed 4.0.0beta7 and MacOS' version of libtiff both work, but creates corrupt TIFF files that can not be read. Attempts to open them result in

ERROR 1: /Users/nelson/corrupt.tiff:Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each) ERROR 1: TIFFReadDirectory:Failed to read directory at offset 79430 gdalinfo failed - unable to open '/Users/nelson/corrupt.tiff'.

NelsonMinar avatar Sep 30 '11 16:09 NelsonMinar

An example broken TIFF is at http://dl.dropbox.com/u/24772043/corrupt-multiband.tiff

One version of libtiff known to work on Debian is marked /usr/lib/libtiff.so.4.3.4

NelsonMinar avatar Sep 30 '11 16:09 NelsonMinar