[Gdal-dev] failing to write geotiff

Frank Warmerdam fwarmerdam at gmail.com
Fri Jul 22 09:35:07 EDT 2005


On 7/21/05, Ken Boss <Ken.Boss at dnr.state.mn.us> wrote:
> 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,

I'm not sure what is going on here!  My suggestion would be
to verify you are using the internal version of libtiff and libgeotiff
in GDAL rather than the system version which may be somewhat
out of date.  You can configure to use internal versions with 
--with-libtiff=internal and --with-geotiff=internal. 

Best regards, 
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list