<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi.<br><br>I want to make data as TMS from NOAA GLOBE, but am in trouble at gdal2tiles.py stage.<br><br>Here are what I did.<br><br>1. installed GDAL library (1.9.2) by HomeBrew on MacOS X(10.8.2)<br>2. installed gdal by pip on python2.7.3<br>3. downloaded all data from <a href="http://www.ngdc.noaa.gov/mgg/topo/gltiles.html">http://www.ngdc.noaa.gov/mgg/topo/gltiles.html</a> and extract.<br>4. downloaded all headers from <a href="http://www.ngdc.noaa.gov/mgg/topo/elev/esri/hdr/">http://www.ngdc.noaa.gov/mgg/topo/elev/esri/hdr/</a><br>5. added "PIXELTYPE      SIGNEDINT" according to<a href="http://fortrangis.berlios.de/doc/globe.html">http://fortrangis.berlios.de/doc/globe.html</a><br>6. gdalbuildvrt globe.vrt ?10g<br>7. gdalwarp -t_srs EPSG:3857 -r bilinear globe.vrt globe-3857.tif<br>8. gdal2tiles.py -s EPSG:3857 -z 0-16 globe-3857.tif<br><br>The last process was done soon and resulting directories and files are a few like below.<br>globe-3857---16---32767---32767.png, 32768.png<br>                              +-32768---32767.png, 32768.png<br>I miss 0-32766 folders and 0-32766.pngs.<br><br>What should I do?<br><br>I checked behaviors inside gdal2tiles.py and found unit inconsistency in line 959.<br>line 959 is a part in determining tile range, and such as below.<br><span class="Apple-tab-span" style="white-space: pre; ">       </span>tminx, tminy = self.mercator.MetersToTile( self.ominx, self.ominy, tz )<br>Here self.ominx, self.ominy should be meters but actually they are degrees.<br><br>But I am not quite sure where should I fix.<br><br>With best regards,<br>-<br>ICHIKAWA, Yuji<br></body></html>