The Grenadier Forum
Register Now for enhanced site access.
INEOS Agents, Dealers or Commercial vendors please contact admin@theineosforum.com for a commercial account.

Custom Maps and Images in CarPlay

Rok_Dr

Grenadier Owner
Lifetime Supporter
Local time
4:14 AM
Joined
Jun 28, 2022
Messages
401
Reaction score
1,025
Location
Perth
I’ve finally nutted out how to get to get my Geotiff, jp2 and ecw maps and images to display on the centre screen using OsmAnd Maps+ through CarPlay.

Following pics illustrate the end result showing the 1:250k topo and geology mapping for Perth.
DSC05245 (Medium).jpgDSC05244 (Medium).jpg
The following process is a bit fiddly and if you aren’t familiar with the software used there will be a decent learning curve, but it’s doable, and if anyone else has a simplier or alternative method please do let me know.

1. Convert Map and Image Files to mbtiles Format.
I used QGIS (https://www.qgis.org) an open-source GIS package. It can open most raster image and vector file formats and has a number of tools to convert the imagery to mbtiles format. You can convert either a single file, a portion of an image, or even make your own custom map for conversion.​
2 -Mbtiles to sqlitedb Conversion.
OsmAnd Maps uses an sqlitedb file format for offline files. I used a python script ”mbtiles2osmand.py” to do the conversion. (https://github.com/tarwirdur/mbtiles2osmand).​
You will need to install python and the python imaging support libraries (Pillow) first. If you need to convert multiple files you can also write a simple windows batch file.​
An alternative method is to use another open-source app, MOBAC (https://mobac.sourceforge.io/). I found it a bit more fiddly and slower than using the python method. MOBAC is designed to access on-line tile image servers and save areas for off-line use in a number of formats including sqlitedb. It doesn’t support common image formats like Geotiff, but will load mbtile files. To do this you need to create an xml file that the program then uses to load your mbtile file. A separate xml file needs to be created for each file you wish to convert. Xml files can also be created to reference other tile servers that aren’t provided by MOBAC such as google satellite imagery. @Mr. Largo WINCH has used this approach to load his offline mapping. (https://www.theineosforum.com/threads/functionality-of-pathfinder.12411940/post-1333222162).​
3. Load to OsmAnd Maps
I copied the files over to my iPhone and put them into the OsmAnd maps folder using the Files app on the phone. There are a number of ways to copy the files over to the phone, and I currently use a neat cross platform wireless file transfer app called LocalSend (https://localsend.org/).​
In OsmAnd Maps I then select a file in the configure map menu to display as either an overlay or underlay .​
Cheers
Steve
 
Last edited:
Back
Top Bottom