<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It might be as easy as this:<br>
<br>
for TILE in `find /path/to/tiles -type f`; do<br>
 echo &quot;${TILE}&quot;<br>
 FILE=`basename &quot;${TILE}&quot;`<br>
 L1=`dirname &quot;${TILE}&quot; | gawk -F&quot;/&quot; &#39;{ print $NF}&#39;`<br>
 L2=`dirname &quot;${TILE}&quot; | gawk -F&quot;/&quot; &#39;{ print $(NF-1)}&#39;`<br>
 curl --output &quot;${TILE}&quot;<br>
<a href="http://tile.openstreetmap.org/" target="_blank">http://tile.openstreetmap.org/</a>&quot;${L2}&quot;/&quot;${L1}&quot;/&quot;${FILE}&quot;<br>
done<br>
<br>
curl and http are on the same line, you mail program might split in over<br>
two lines.<br>
<br>
Kind regards,<br>
<font color="#888888">Ed<br>
</font><div></div></blockquote><div>For some reason I don&#39;t understand, all my stored map tiles suddenly appeared upside down (rotated 180 degrees) in tangogps, while newly downloaded tiles showed correctly. Yaouh didn&#39;t seem to correct that problem, so I found Ed&#39;s script very useful to substitute all the stored tiles with fresh versions from <a href="http://osm.org">osm.org</a>. Thanks Ed.<br>
Alex <br></div></div><br>