<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Bobletekst Tegn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EpostStil17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BobletekstTegn
        {mso-style-name:"Bobletekst Tegn";
        mso-style-priority:99;
        mso-style-link:Bobletekst;
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NO-BOK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi all, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I think this might be a libtiff issue, but I&#8217;ll cross post it here as well just in case.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>The issue I&#8217;m having is processing a 2.7 gb single page tiff. I wanted to use gdal_retile (tried gdal 1.7.0b2 and 1.8.0) on this to first tile and then eventually pyramid the resultant images.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>However, when I tried to do a gdalinfo command or gdal _retile command on the image I&#8217;d just get a memory error. So I tried to make the tiff smaller using gdal_translate but got the same error:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><i><span lang=EN-US>gdal_translate -outsize 50% 50% \gebco_nordic_mareano_utm33.tif c:\gebco50.tif<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US>ERROR 1: \gebco_nordic_mareano_utm33.tif:Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ERROR 1: TIFFReadDirectory:Failed to read directory at offset 29368<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>GDALOpen failed - 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>TIFFReadDirectory:Failed to read directory at offset 29368<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Tiff info below:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>File Information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Standard : : TIFF File<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Format : : LZW&nbsp; Compressed 24 bit RGB data<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Pixels per Line :&nbsp; 46546<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Number of Lines :&nbsp; 20002<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Samples per pixel :&nbsp; 4<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Untiled file<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Number of overviews :&nbsp; 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Scanning device resolution :&nbsp; 0&nbsp; : None Specified<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Orientation :&nbsp; 4&nbsp; : Row major order, origin at top left<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>NO scan line headers : non-scannable file<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Packet size (16-bit words) : 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Free vlt space (16-bit words) : 65535<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Free packet space (16-bit words) : 65535<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Transformation matrix:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>mx[ 0]=0.000000, mx[ 1]=0.000000, mx[ 2]=0.000000, mx[ 3]=0.000000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>mx[ 4]=0.000000, mx[ 5]=0.000000, mx[ 6]=0.000000, mx[ 7]=0.000000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>mx[ 8]=0.000000, mx[ 9]=0.000000, mx[10]=0.000000, mx[11]=0.000000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>mx[12]=0.000000, mx[13]=0.000000, mx[14]=0.000000, mx[15]=0.000000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Geotiff_Information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp; Version: 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp; Key_Revision: 1.0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp; Tagged_Information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ModelTiepointTag (2,3):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-2587479.71&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9561380.04&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ModelPixelScaleTag (1,3):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 113.000127&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 195.002233&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End_Of_Tags.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp; Keyed_Information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GTModelTypeGeoKey (Short,1): ModelTypeProjected<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ProjectedCSTypeGeoKey (Short,1): PCS_WGS84_UTM_zone_33N<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End_Of_Keys.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&nbsp;&nbsp; End_Of_Geotiff.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I have built using the bigtiff option so the size shouldn&#8217;t be an issue, does anyone have any thoughts on this, I&#8217;ve just come up against a brick wall!!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Cheers<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Tom<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left width="100%" style='width:100.0%'><tr><td valign=top style='padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><a href="http://www.statkart.no/"><span style='color:blue;text-decoration:none'><img border=0 width=112 height=109 id="_x0000_i1026" src="cid:image001.jpg@01CC16D8.FF5F89A0"></span></a><span style='font-size:12.0pt'><o:p></o:p></span></p></td><td width="100%" valign=top style='width:100.0%;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Tom Ellett von Brasch</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'><br>Senior Engineer<br>Norwegian&nbsp;Mapping&nbsp;Authority<br>Telephone + 47 45 80 64 02<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Mobile + 47 45 80 64 02<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>E-mail:<a href="mailto:Ditt.Navn@statkart.no"><span style='color:blue'>Thomas.Ellett@statkart.no</span></a> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></td></tr><tr><td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal>&nbsp;<span style='font-size:12.0pt'><o:p></o:p></span></p></td><td width="60%" style='width:60.0%;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><span lang=EN-US>DISCLAIMER: This e-mail message and any attachments are confidential and may be privileged or otherwise protected by legal rules, and for use by the addressee only. If the message is received by anyone other than the addressee, please delete it and any attachments from your computer without copying it or disclosing its contents to anyone. Whilst all reasonable care has been taken to avoid the transmission of viruses, no responsibility is accepted in this regard and the recipient should scan and carry out such other checks as it considers appropriate.</span><span lang=EN-US style='font-size:12.0pt'><o:p></o:p></span></p></td></tr></table></td></tr></table><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left width="100%" style='width:100.0%'><tr><td valign=top style='padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><a href="http://www.statkart.no/"><span style='color:blue;text-decoration:none'><img border=0 width=112 height=109 id="_x0000_i1025" src="cid:image001.jpg@01CC16D8.FF5F89A0"></span></a><span style='font-size:12.0pt'><o:p></o:p></span></p></td><td width="100%" valign=top style='width:100.0%;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Tom Ellett von Brasch</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'><br>Senior Engineer<br>Norwegian&nbsp;Mapping&nbsp;Authority<br>Telephone + 47 45 80 64 02<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Mobile + 47 45 80 64 02<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>E-mail:<a href="mailto:Ditt.Navn@statkart.no"><span style='color:blue'>Thomas.Ellett@statkart.no</span></a> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></td></tr><tr><td style='padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal>&nbsp;<span style='font-size:12.0pt'><o:p></o:p></span></p></td><td width="60%" style='width:60.0%;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><span lang=EN-US>DISCLAIMER: This e-mail message and any attachments are confidential and may be privileged or otherwise protected by legal rules, and for use by the addressee only. If the message is received by anyone other than the addressee, please delete it and any attachments from your computer without copying it or disclosing its contents to anyone. Whilst all reasonable care has been taken to avoid the transmission of viruses, no responsibility is accepted in this regard and the recipient should scan and carry out such other checks as it considers appropriate.</span><span lang=EN-US style='font-size:12.0pt'><o:p></o:p></span></p></td></tr></table></td></tr></table><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p></div></body></html>