<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 "${TILE}"<br>
FILE=`basename "${TILE}"`<br>
L1=`dirname "${TILE}" | gawk -F"/" '{ print $NF}'`<br>
L2=`dirname "${TILE}" | gawk -F"/" '{ print $(NF-1)}'`<br>
curl --output "${TILE}"<br>
<a href="http://tile.openstreetmap.org/" target="_blank">http://tile.openstreetmap.org/</a>"${L2}"/"${L1}"/"${FILE}"<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't understand, all my stored map tiles suddenly appeared upside down (rotated 180 degrees) in tangogps, while newly downloaded tiles showed correctly. Yaouh didn't seem to correct that problem, so I found Ed'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>