Skip to content

wellenvogel/mobac_convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobac_convert

convert world files from mobac to BSB files using imgkap.exe (https://www.dacust.com/inlandwaters/imgkap/) on windows. This small tool allows you to convert world files generated by mobile atlas creator to BSB files. It needs python installed (tested with 2.7). If GDAL is also installed, it uses GDAL to convert the charts. Otherwise it will do some internal conversion. WARNING: The conversion is not exact - MOBAC generated stuff will have google mercator (world as sphere) whereas the BSB charts assume WGS 84 (world as ellipsoid). At the map corners everything is fine. Anyway within the map there will be slight differences. For the normally used zoom level (10...17) this should be acceptable as long as your single chart is not too big (e.g. >>1000px in one direction). For the non-gdal mode there are no checks for the input material... In MOBAC (https://mobac.sourceforge.net/) save your atlas as png + world file. Start the conversion with: convert_to_bsb.py It will produce the *.kap files in the same directory. Use option -n if you do not want GDAL (https://www.gdal.org/).

Install hints:

  1. download python + gdal: (Windows) Python 2.7.3 from https://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi https://www.gisinternals.com/sdk/Download.aspx?file=release-1600-x64-gdal-1-9-2-mapserver-6-2-0\gdal-19-1600-x64-core.msi https://www.gisinternals.com/sdk/Download.aspx?file=release-1600-x64-gdal-1-9-2-mapserver-6-2-0\GDAL-1.9.2.win-amd64-py2.7.msi add gdal to path - control panel, search for environment, add PATH : %PATH%;c:\Program Files\GDAL add GDAL_DATA to env GDAL_DATA=c:\Program Files\GDAL\gdal-data

  2. download imgkap.exe https://www.dacust.com/inlandwaters/imgkap/

  3. the python script

You can find the script also at https://www.wellenvogel.net/software/bsb_from_moac/index.php

  1. On Linux Systems you need to compile imgkap by your own - but this is easy (Thanks to Oleg for his description)

sudo aptitude install git gcc python-gdal libfreeimage-dev

git clone https://github.com/nohal/imgkap.git

cd imgkap

make

cd ..

git clone https://github.com/wellenvogel/mobac_convert.git

cd mobac_convert

PATH=$PATH:../imgkap ./convert_to_bsb.py /path/to/mobac_png_charts

About

convert world files from mobac to BSB files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages