<div>I'm not sure what you mean by "I dumped the database and I found out the tracks are stored in binary format"? Do you mean that you extracted the data from the sqlite database and found it was stored in the database as BLOBS or that the sqlite database is a binary format?
<br><br> </div>
<div><span class="gmail_quote">On 27/03/06, <b class="gmail_sendername">Ovidiu Constantin</b> <<a href="mailto:ovidiu@mybox.ro">ovidiu@mybox.ro</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">A friend of mine uses a navigation software called i-Go - it's the best<br>so far for Romania. This program has the ability to record tracks. So I
<br>asked him to record one and send me the data. Unfortunatly, this program<br>saves all its data in a sqlite3 database. I dumped the database and I<br>found out that the tracks are stored in binary format, here is a sample:
<br><br>E6 0F 28 44 E2 AA 0E 0D 6A 13 3D 16<br>E7 0F 28 44 8A AB 0E 0D BE 13 3D 16<br>E8 0F 28 44 5C AC 0E 0D 3B 14 3D 16<br>E9 0F 28 44 2D AD 0E 0D E3 14 3D 16<br><br>The first 32 bit of each line form an unsigned int - a unix time of the
<br>capture. Then there are 2 more 32 bit values that should be the latitude<br>and longitude.<br><br>Normal values for that location (from a previous capture by me):<br><trkpt lat="44.477135" lon="26.114385
"><br><br>Values from that dump (unsigned int)<br>219065058 and 373101418<br><br>so the first is the longitude and the second the latitude. If we divide<br>lat/long, the proportion is the same, so the data is valid and is not
<br>scrambled in any way.<br><br>This is where I'm stuck. I don't know how to convert those numbers to<br>valid data for my location - Bucharest/Romania.<br><br>Help? :(<br><br>Thank you,<br>Ovidiu<br><br>PS: This is not a simple "hacking" exercise. I know some people on a
<br>forum, plus some of my friends, that use this software. I'm sure they<br>would record their tracks and give me the data, because it's no trouble<br>for them, the navigation works perfectly while recording.<br><br><br>
<br>_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
</a><br></blockquote></div><br>