[gdal-dev] Problematic TIFs
Rob
gis at vanbooth.com
Mon Apr 21 10:50:11 EDT 2008
Thanks for the reply Cristian - out of curiousity, how big was that
overviewed raster?
On 21/04/2008, Balint Cristian <cristian.balint at oradea.rdsnet.ro> wrote:
>
> Hello Rob,
>
>
> >gdalinfo TQ00.TIF
> Band 1 Block=4000x8 Type=Byte, ColorInterp=Red
> Band 2 Block=4000x8 Type=Byte, ColorInterp=Green
> Band 3 Block=4000x8 Type=Byte, ColorInterp=Blue
> Band 4 Block=4000x8 Type=Byte, ColorInterp=Alpha
>
> I'm currently using GDAL 1.2.0.0 (released 2004/03/01) on AIX.
>
>
> I think you use a very old gdal, these days gdal hitted version 1.5.1
> mainstream.
>
> I guess older gdal cannot handle custom bit-depth, look at my gdalinfo
> using 1.5.1
> its says we have an unusual 4bit depth:
>
> $ gdalinfo.exe TQ00.tiff
> Driver: GTiff/GeoTIFF
> Files: TQ00.tiff
> Size is 4000, 4000
> Coordinate System is `'
> Metadata:
> TIFFTAG_XRESOLUTION=254
> TIFFTAG_YRESOLUTION=254
> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
> Image Structure Metadata:
> COMPRESSION=LZW
> INTERLEAVE=BAND
> Corner Coordinates:
> Upper Left ( 0.0, 0.0)
> Lower Left ( 0.0, 4000.0)
> Upper Right ( 4000.0, 0.0)
> Lower Right ( 4000.0, 4000.0)
> Center ( 2000.0, 2000.0)
> Band 1 Block=4000x8 Type=Byte, ColorInterp=Palette
> Overviews: 2000x2000, 1000x1000, 500x500, 250x250
> Image Structure Metadata:
> NBITS=4
> Color Table (RGB with 16 entries)
> 0: 4,4,4,255
> 1: 16,16,16,255
> 2: 45,45,45,255
> 3: 78,78,78,255
> 4: 111,111,111,255
> 5: 140,140,140,255
> 6: 156,156,156,255
> 7: 173,173,173,255
> 8: 181,181,181,255
> 9: 197,197,197,255
> 10: 214,214,214,255
> 11: 222,222,222,255
> 12: 231,231,231,255
> 13: 239,239,239,255
> 14: 247,247,247,255
> 15: 255,255,255,255
> I had no problem running gdaladdo over your sample:
>
> gdaladdo TQ00.tiff 2 4 8 16
> 0...10...20...30...40...50...60...70...80...90...100 - done.
>
> I think you should try build for yourself a newer gdal (i suggest 1.5.1
> latest), i am pretty sure that is doable fine on AIX,
> it should compile and work at all, i've used it to pack it on
> linux-powerpc but never tryed for for AIX platform.
>
>
> ~cristian
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080421/f825c749/attachment.html
More information about the gdal-dev
mailing list