[Gdal-dev] failing to write geotiff

Ken Boss Ken.Boss at dnr.state.mn.us
Thu Jul 21 19:17:59 EDT 2005


Hello list--

I am working with gdal 1.2.6 with internal libtiff/geotiff on Solaris, and attempting to output geotiffs from gdal_merge.py, like:

gdal_merge.py -o /b4/keboss/tif_tiles_test/test/tester/ccw2004_tmp1.tif -v -of GTIFF -ps 1 1 -ul_lr 342707.5 5244447.5 345418.5 5242467.5 -n 0 /u/ortho/ccw/completed_blocks/ccw_block01/chips/ccw04009.img /u/ortho/ccw/completed_blocks/ccw_block01/chips/ccw05009.img /u/ortho/ccw/completed_blocks/ccw_block01/chips/ccw05010.img /u/ortho/ccw/completed_blocks/ccw_block01/chips/ccw04010.img

But I'm failing with a bunch of errors like:

TIFFWriteEncodedStrip:/b4/keboss/tif_tiles_test/test/tester/ccw2004_tmp1.tif: Must set "ImageWidth" before writing data

FWIW, I can output to other formats (eg., HFA) just fine.


Presumably for the same reason, gdal_translate is also unable to generate a usable geotiff:

gdal_translate ccw04009.img ccw04009.tif
Input file size is 2590, 1565
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 4: `ccw04009.tif' not recognised as a supported file format.

ERROR 4: `ccw04009.tif' not recognised as a supported file format.

gdalinfo ccw04009.tif
ERROR 4: `ccw04009.tif' not recognised as a supported file format.

GDALOpen failed - 4
`ccw04009.tif' not recognised as a supported file format.


Any suggestions would be appreciated.

--Ken Boss
  MN DNR Forestry





More information about the Gdal-dev mailing list