DEM-Tools
DEM-Tools copied to clipboard
multiband TIFFs not working on MacOS
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'.
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