User Tools

Site Tools


manual:advanced:convert_img_to_sql

This is an old revision of the document!


Convert IMG maps to SQL


This page is obsolete and will be reworked soon

Basic information

Created: 2012/07/12 08:57

How to

This is one possible, working and mainly tested method to convert IMG map files, with some limitations, to one of formats that Locus support

What you need

  • IMG map file, you want to convert
  • program MapEdit++
  • program MAPC2MAPC
  • some free time

Method

1. convert IMG to image format (BMP)

  1. start MapEdit++ program (Instructions based on v1.061.496)
  2. select FileOpen and choose your IMG map file. It will take some time, till program analyze and load whole map file.
  3. now depend if you want to export whole IMG map file to Locus or just part.
    • whole: easier, nothing special to prepare
    • part: need to find top-left and bottom-right coordinate of area you want to export. At bottom of screen, you may see current coordinates of your center cross, so I suggest to write on paper these two required locations!
  4. now zoom to level you want to have exported (only one zoom level may be exported, so choose precisely)
  5. select FileExportRaster image
    • define path where you want to export the *.bmp file
    • select Create OZI map file
    • define path where you want to export the *.map file
    • in Rectangle to export press Set whole map or Set custom if you want export just part of map
    • Scale cannot be changed and tilling is not needed here, so press Finish.
  6. that's all here, let's go to another part!

2. convert OZI map to SQLite map

  1. start MAPC2MAPC program (Instructions based on v499)
  2. select FileOpen Calibration and choose your *.map file
  3. program will load this calibration file and print out some results
  4. select FileWrite Mobile Atlas
    • in Select atlas choose Locus/RMAPS/… item
    • zoom levels should leave as is. MAPC2MAPC automatically create some zoom levels for you from that one bitmap image
    • if you need to specify some tiles and want transparent margins, select checkboxes below
    • after selection, press OK and … wait …

3. Result

Result of this procedure should *.sqlite map file. Simply put this map file into Locus/maps directory on your device and start Locus. It should load this map and allow you to select it in Map Managerscreen

manual/advanced/convert_img_to_sql.1432218490.txt.gz · Last modified: 2015/05/21 16:28 by mstupka