====== How to convert a picture to sqlite.db ====== ---- ===== Basic information ===== **Type**: Tutorial - How to convert scanned maps (jgp, bmp, gif, tif, png) \\ **Author**: nervusvagus \\ **Forum link**: http://forum.locusmap.eu/viewtopic.php?f=44&t=2801&p=18446#p18444 \\ **What you need:** \\ - Mapc2Mapc from http://www.the-thorns.org.uk (This tutorial is based on V 0.5.0.7)\\ - Your (scanned) map picture\\ - Coordinates - needed for calibration (you can use some online services, like [[http://www.doogal.co.uk/LatLong.php|Webservices]] to see your needed coordinates) ---- ===== How to ===== ==== load picture ==== Start Mapc2Mapc and load your picture:\\ **File** => **Load image for calibration** => **From Map Coordinates** **[[manual:advanced:convert_images_to_sql#section1|[1]]]** \\ **Map Calibration Settings** > select **Latitude / Longitude (plate carree)** > and **WGS 84** > **Next** **[[manual:advanced:convert_images_to_sql#section2|[2]]]** ---- ==== calibrate image ==== After this the map file is loaded - ready for calibration. Choose a point that is easily recognizable on the image map file and find the same place (e.g) in GoogleMaps. Enter the coordinates in the dialog box for entering coordinates. After doing this 3 to 4 times you can **Click to finish** and the map is calibrated. **[[manual:advanced:convert_images_to_sql#section3|[3]]]** To adjust the position of a calibration point (red cross), right-click it. ** [[manual:advanced:convert_images_to_sql#section4| [4]]]** Now we are ready to **save**... ---- ==== create map ==== **File** > **Write Map for Mobile device [[manual:advanced:convert_images_to_sql#section5|[5]]]** \\ And in the **Mobile Atlas selection** choose under **Select atlas** the option **Locus/RMAPS/Galileo sqlite.db** > **OK [[manual:advanced:convert_images_to_sql#section6|[6]]]** The **Mobile Atlas Tile Selections** screens will be open now. \\ Here you can de/activate some white/useless tiles. Un/check your tiles and press **OK** for each zoomlevel **[[manual:advanced:convert_images_to_sql#section7|[7]]]**. After last zoom level the map will begin saving.\\ The map will be saved as //picturefilename//.sqlitedb file inside the same folder as the picture. ---- ==== use it in Locus Map ==== Copy now your created map to **..Locus/maps/..** Or you can place this file anywhere in your sdcard on your phone. \\ In order to access it: \\ **Main menu** > **Maps** > **Offline maps** and add the directory to be scanned for the map file. -//nervusvagus// ---- ==== red crosses ==== Firstly, suggest to test working demo version if this fits your needs. The demo version of mapc2mapc will replace some of your map tiles with red crosses: {{ :manual:advanced:mapc2mapc_redcross.jpg?nolink |}} In case you are satisfied we suggest to buy full version. \\ Thanks to this, Locus Map Classic user will get 10% discount of this product. [[http://www.the-thorns.org.uk/mapping/help/locus.html|Read more >>]] ---- ===== Appendix ===== ==== [1] ==== {{:manual:advanced:pic2map_01.png?nolink|}}
[[manual:advanced:convert_images_to_sql#how_to|<=back]] ==== [2] ==== {{:manual:advanced:pic2map_02.png?nolink|}}
[[manual:advanced:convert_images_to_sql#how_to|<=back]] ==== [3] ==== {{:manual:advanced:pic2map_03.png?nolink|}}
[[manual:advanced:convert_images_to_sql#calibrate_image|<=back]] ==== [4] ==== {{:manual:advanced:pic2map_04.jpg?nolink|}}
[[manual:advanced:convert_images_to_sql#calibrate_image|<=back]] ==== [5] ==== {{:manual:advanced:pic2map_06.png?nolink|}}
[[manual:advanced:convert_images_to_sql#create_map|<=back]] ==== [6] ==== {{:manual:advanced:pic2map_07.png?nolink|}}
[[manual:advanced:convert_images_to_sql#create_map|<=back]] ==== [7] ==== {{:manual:advanced:pic2map_08.jpg?nolink|}}
[[manual:advanced:convert_images_to_sql#create_map|<=back]]