<div dir="ltr"><p>Hi, All,<br></p><p>As an example I have a BSB file from NOAA which is a navigational map. The map has a SRS of WGS84 and a Mercator projection.</p>
<p>I initially translate the file from BSB format to GTiff format using the following command:</p>
<pre><code> gdal_translate -of GTiff 18554_1.kap noaa.tif
</code></pre>
<p>I can view this GTiff file using Paint Shop Pro quite fine. I then
translate the file from GTiff format to VRT format using the following
command:</p>
<pre><code> gdal_translate -of vrt –expand rgba noaa.tif noaa.vrt
</code></pre>
<p>I then try to generate a tile matrix set using the following command:</p>
<pre><code> gdal2tiles.py noaa.vrt tiles_folder
</code></pre>
Where the map tiles are located in tiles_folder. If I try to open
the openmaps.html or google.html, the map zoom in and out looks good.
However, on tiles generator like MBTiles, I see tiles swap. I am pulling my hair off to get the tiles to line
up. I am guessing it is projection error. I am not understanding those
projection types. It would great someone can explain it while finding
the error. By the way, on GDAL how do I specify the BSB (reference) file
that is
associated with KAP (data) file? I have seen cases where only one BSB
file referred by multiple KAP files.</div>