Thanks for the reply Cristian - out of curiousity, how big was that overviewed raster?<br><br>
<div><span class="gmail_quote">On 21/04/2008, <b class="gmail_sendername">Balint Cristian</b> <<a href="mailto:cristian.balint@oradea.rdsnet.ro">cristian.balint@oradea.rdsnet.ro</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Hello Rob,</font></div>
<div><font face="Arial" size="2"></font> </div>
<blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<div>>gdalinfo TQ00.TIF<span class="q"><br>Band 1 Block=4000x8 Type=Byte, ColorInterp=Red<br>Band 2 Block=4000x8 Type=Byte, ColorInterp=Green<br>Band 3 Block=4000x8 Type=Byte, ColorInterp=Blue<br>Band 4 Block=4000x8 Type=Byte, ColorInterp=Alpha</span></div>
<div><font face="Arial" size="2"></font> </div><span class="q">
<div>I'm currently using GDAL <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.2.0.0/" target="_blank">1.2.0.0</a> (released 2004/03/01) on AIX.</div>
<div> </div>
<div><font face="Arial" size="2"></font> </div></span>
<div><font face="Arial" size="2">I think you use a very old gdal, these days gdal hitted version 1.5.1 mainstream.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I guess older gdal cannot handle custom bit-depth, look at my gdalinfo using 1.5.1</font></div>
<div><font face="Arial" size="2">its says we have an unusual 4bit depth:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">$ gdalinfo.exe TQ00.tiff<br>Driver: GTiff/GeoTIFF<br>Files: TQ00.tiff<span class="q"><br>Size is 4000, 4000<br>Coordinate System is `'<br>Metadata:<br> TIFFTAG_XRESOLUTION=254<br> TIFFTAG_YRESOLUTION=254<br>
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br></span>Image Structure Metadata:<br> COMPRESSION=LZW<br> INTERLEAVE=BAND<span class="q"><br>Corner Coordinates:<br>Upper Left ( 0.0, 0.0)<br>Lower Left ( 0.0, 4000.0)<br>
Upper Right ( 4000.0, 0.0)<br>Lower Right ( 4000.0, 4000.0)<br>Center ( 2000.0, 2000.0)<br></span>Band 1 Block=4000x8 Type=Byte, ColorInterp=Palette<br> Overviews: 2000x2000, 1000x1000, 500x500, 250x250<br> Image Structure Metadata:<br>
NBITS=4<br> Color Table (RGB with 16 entries)<br> 0: 4,4,4,255<br> 1: 16,16,16,255<br> 2: 45,45,45,255<br> 3: 78,78,78,255<br> 4: 111,111,111,255<br> 5: 140,140,140,255<br> 6: 156,156,156,255<br>
7: 173,173,173,255<br> 8: 181,181,181,255<br> 9: 197,197,197,255<br> 10: 214,214,214,255<br> 11: 222,222,222,255<br> 12: 231,231,231,255<br> 13: 239,239,239,255<br> 14: 247,247,247,255<br> 15: 255,255,255,255<br>
</font></div>
<div><font face="Arial" size="2">I had no problem running gdaladdo over your sample:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> gdaladdo TQ00.tiff 2 4 8 16<br>0...10...20...30...40...50...60...70...80...90...100 - done.<br></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> 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,</font></div>
<div><font face="Arial" size="2">it should compile and work at all, i've used it to pack it on linux-powerpc but never tryed for for AIX platform.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">~cristian</font></div>
<div><font face="Arial" size="2"> </font></div>
<div><font face="Arial" size="2"> </font></div></blockquote></div></blockquote></div><br>