[Gdal-dev] Problem of creation with Gtiff driver on Solaris

Frédéric Trastour support at geoimage.fr
Thu Sep 8 12:17:31 EDT 2005


Hello,

I am trying to find why GDAL 1.3.0 with the internal libtiff on Solaris doesn't
create valid GEOtiff.

Here is a trace (some printfs added in tif_vsi.c) of a gdal_translate execution:

GDAL/GEO: GEODataset::Open :im1x1.geo
GDAL: GDALOpen(im1x1.geo) succeeds as GEO.
Input file size is 1, 1
0.TIFFOpen FILENAME=im11.TIF, MODE=w+b --> FILE=fe437c64
tiffReadProc FILE=fe437c64, BUF=2d000, SIZE=8 -->0 [POS=0]
** tiffWriteProc FILE=fe437c64, BUF=2d000, SIZE=8 -->8 [POS=-8184] // A 'tell'
just after the write returns -8184 instead of 8 !
100 - done.
** tiffSeekProc FILE=fe437c64, OFFSET=0, WHENCE=SEEK_END --> 0 // 0 instead of 8
tiffWriteProc FILE=fe437c64, BUF=4af00, SIZE=1 -->1 [POS=1]
tiffSeekProc FILE=fe437c64, OFFSET=0, WHENCE=SEEK_END --> 1
tiffSeekProc FILE=fe437c64, OFFSET=4, WHENCE=SEEK_SET --> 4
tiffWriteProc FILE=fe437c64, BUF=ffb8dc5c, SIZE=4 -->4 [POS=8]
tiffSeekProc FILE=fe437c64, OFFSET=164, WHENCE=SEEK_SET --> 164
tiffSeekProc FILE=fe437c64, OFFSET=164, WHENCE=SEEK_SET --> 164
tiffWriteProc FILE=fe437c64, BUF=2f110, SIZE=128 -->128 [POS=292]
tiffSeekProc FILE=fe437c64, OFFSET=2, WHENCE=SEEK_SET --> 2
tiffWriteProc FILE=fe437c64, BUF=ffb8dcd6, SIZE=2 -->2 [POS=4]
tiffWriteProc FILE=fe437c64, BUF=4af00, SIZE=156 -->156 [POS=160]
tiffWriteProc FILE=fe437c64, BUF=ffb8dcd0, SIZE=4 -->4 [POS=164]
tiffCloseProc FILE=fe437c64

ERROR 4: `im11.TIF' not recognised as a supported file format.
ERROR 4: `im11.TIF' not recognised as a supported file format.

GDAL: GDALDeregister_GTiff() called.

As you can see there are two strange results (marked with **).
Any ideas about that ?

Does it work on any other unix platforms ?

Thanks
Frédéric.
_________________________________________________________________
Frédéric Trastour - SpacEyes - dev at spaceyes.fr




More information about the Gdal-dev mailing list