<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ah, so zoom levels are already in the geotiff. I thought they were based on resolution.<div>That was by the way the whole gdalinfo I printed, so I guess the one who made the tiff hasn't added zoom levels?</div><div><br></div><div>Regards</div><div>/Per<br><div><br><div apple-content-edited="true">
<span><img height="35" width="160" id="ad33a653-94d3-4508-a742-31e26b5a4888" apple-width="yes" apple-height="yes" src="cid:50A4BFE2-73C1-4CA9-92C1-20802C529E2B"></span><br class="Apple-interchange-newline"><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">Per Ohlson, M.Sc. E.E.</span></font></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">Nanight AB - <a href="http://www.nanight.se">http://www.nanight.se</a></span></font></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></div></div></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; ">Stockholm/Gothenburg, Sweden</span></font></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; "><a href="mailto:per.ohlson@nanight-tech.com">per.ohlson@nanight-tech.com</a></span></font></div>
</div>
<br><div><div>On 21 jan 2013, at 20:20, Even Rouault <<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Le lundi 21 janvier 2013 20:15:42, Per Ohlson a écrit :<br><blockquote type="cite">Hi,<br>I have two different geotiff-charts which have the same number of pixels,<br>and similar information when viewing in gdalinfo, but one misbehaves while<br>tiling.<br>For the problem chart, only the zoom levels 0-6 are tiled, but for the<br>correctly handled chart, zoom levels 4-11 are tiled. Both are around<br>23000x15000 pixels and 72 dpi.<br>So, what decides the zoom levels? I thought it was pixels and dpi..<br></blockquote><br>You probably don't give the whole context. From the gdalinfo output, I can <br>tell that none of your geotiffs are tiled, or have overviews (precomputed zoom <br>levels). So this may depend on the application that make use of them.<br><br><blockquote type="cite"><br>gdalinfo on the working chart gives:<br><br>Coordinate System is:<br>Size is 15108, 23181<br>GEOGCS["WGS 84",<br> DATUM["WGS_1984",<br> SPHEROID["WGS 84",6378137,298.257223563,<br> AUTHORITY["EPSG","7030"]],<br> AUTHORITY["EPSG","6326"]],<br> PRIMEM["Greenwich",0],<br> UNIT["degree",0.0174532925199433],<br> AUTHORITY["EPSG","4326"]]<br>Origin = (167.635052101782918,-27.435225354710909)<br>Pixel Size = (0.000619744987014,-0.000517525434692)<br>Metadata:<br> AREA_OR_POINT=Area<br>Image Structure Metadata:<br> COMPRESSION=LZW<br> INTERLEAVE=PIXEL<br>Corner Coordinates:<br>Upper Left ( 167.6350521, -27.4352254) (167d38' 6.19"E, 27d26' 6.81"S)<br>Lower Left ( 167.6350521, -39.4319825) (167d38' 6.19"E, 39d25'55.14"S)<br>Upper Right ( 176.9981594, -27.4352254) (176d59'53.37"E, 27d26' 6.81"S)<br>Lower Right ( 176.9981594, -39.4319825) (176d59'53.37"E, 39d25'55.14"S)<br>Center ( 172.3166057, -33.4336039) (172d18'59.78"E, 33d26' 0.97"S)<br>Band 1 Block=15108x1 Type=Byte, ColorInterp=Red<br> Mask Flags: PER_DATASET ALPHA<br>Band 2 Block=15108x1 Type=Byte, ColorInterp=Green<br> Mask Flags: PER_DATASET ALPHA<br>Band 3 Block=15108x1 Type=Byte, ColorInterp=Blue<br> Mask Flags: PER_DATASET ALPHA<br>Band 4 Block=15108x1 Type=Byte, ColorInterp=Alpha<br><br>gdalinfo on the problem chart gives:<br>Size is 15319, 23593<br>Coordinate System is:<br>GEOGCS["WGS 84",<br> DATUM["WGS_1984",<br> SPHEROID["WGS 84",6378137,298.257223563,<br> AUTHORITY["EPSG","7030"]],<br> AUTHORITY["EPSG","6326"]],<br> PRIMEM["Greenwich",0],<br> UNIT["degree",0.0174532925199433],<br> AUTHORITY["EPSG","4326"]]<br>Origin = (176.502369113268770,-25.635284667174400)<br>Pixel Size = (0.000619910224237,-0.000526829594898)<br>Metadata:<br> AREA_OR_POINT=Area<br>Image Structure Metadata:<br> COMPRESSION=LZW<br> INTERLEAVE=PIXEL<br>Corner Coordinates:<br>Upper Left ( 176.5023691, -25.6352847) (176d30' 8.53"E, 25d38' 7.02"S)<br>Lower Left ( 176.5023691, -38.0647753) (176d30' 8.53"E, 38d 3'53.19"S)<br>Upper Right ( 185.999, -25.635) (185d59'55.59"E, 25d38' 7.02"S)<br>Lower Right ( 185.999, -38.065) (185d59'55.59"E, 38d 3'53.19"S)<br>Center ( 181.251, -31.850) (181d15' 2.06"E, 31d51' 0.11"S)<br>Band 1 Block=15319x1 Type=Byte, ColorInterp=Red<br> Mask Flags: PER_DATASET ALPHA<br>Band 2 Block=15319x1 Type=Byte, ColorInterp=Green<br> Mask Flags: PER_DATASET ALPHA<br>Band 3 Block=15319x1 Type=Byte, ColorInterp=Blue<br> Mask Flags: PER_DATASET ALPHA<br>Band 4 Block=15319x1 Type=Byte, ColorInterp=Alpha<br><br>Regards<br>/Per<br><br><br><br>Per Ohlson, M.Sc. E.E.<br>Nanight AB - <a href="http://www.nanight.se">http://www.nanight.se</a><br>Stockholm/Gothenburg, Sweden<br><a href="mailto:per.ohlson@nanight-tech.com">per.ohlson@nanight-tech.com</a><br></blockquote></blockquote></div><br></div></div></body></html>