OSMAnd Database

175 views
Skip to first unread message

Jude Mwenda

unread,
Jul 3, 2014, 11:00:04 AM7/3/14
to osm...@googlegroups.com
Hey,

I really do like OsmAnd and I am curious how data is stored within the application. I have looked for the sqlite database, but cannot seem to any specification of the .db file. I only see the SQLLiteTile source [1] and the API. Is the data downloaded from a specific area actually downloaded into the sql file? Or does the code interpret the odf file format? Please help. Looking at how I could contribute. 

John T

unread,
Jul 6, 2014, 3:14:24 PM7/6/14
to osm...@googlegroups.com
I would like to know this as well.

Here are some guesses: From what I can tell, OsmAnd has the capability to read tiles (i.e. loaded from the internet, such as satellite imagery) either from a file/folder directory structure, or from a SQLite database. I think that the Online Maps plugin uses the directory structure by default, but I could be wrong. For vector maps (pre-downloaded, entirely offline, OBF format) the code reads and renders from the OBF files "on the fly". The preferred interpreter/renderer is the native library, but the Android app also includes a fallback Java interpreter/renderer in case the native library fails.

I hope this helps, but if someone who really knew what they were talking about to contribute, that would be very helpful.

John T.

Harry van der Wolf

unread,
Jul 6, 2014, 4:19:48 PM7/6/14
to osmand
the tile files are sqlite database files. You can simply open them in sqlite3.
While creating the obf files an intermediate sqlite3 structure is used to store the POIs, streets, etc..
When really writing the obf at the end of the complete mapcreator run, these tables are written to a binary file. That last step is not entirely clear to me either.

Harry


--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages