Convert external maps to OziExplorer

Many map software vendors like German TOP 50 do not include export functions. Printing, however, is usually not a problem.

I therefore suggest to use the print function for exporting map data. Just print your desired map area into a PDF file (TOP 50 nicely allows to set anchor points for that).

A PDF printer driver will be already installed on many systems (if not, please go to sourceforge and download pdfcreator). Write down the upper left and lower right GPS coordinates of your rectangle as you will need them later in OziExplorer.

You will need to download also two graphics packages: netpbm and xpdf.

Move your PDF print export and all downloaded executables into one directory. After running the following script you will see a bmp file that can be imported and calibrated in OziExplorer. Happy navigating!

ozi.cmd

 1:
 2:
 3:
 4:
 5:
 6:
 7:
 8:
 9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
27:
@echo off & setlocal enableDelayedExpansion

rem our working directory
set p=c:\Programme\OziExplorer\
rem our pdf with the map
set d=print.pdf
set w=ping 127.0.0.1 -n 2 -w 1000

:1
rem we extract the figures from the PDF
pdfimages %p%%d% %p%%d%

:2
rem we rename the first and concatenate all further pictures
rem note: the ping is only used to slow down the batch ;-) 
rename %d%-000.ppm block
for %%a in (%p%*.ppm) do %w%>nul & pnmcat -tb %%a block >tmp & %w%>nul & copy tmp block>nul & echo %%a done

:3
rem finally we create a bmp file and clear the space
ppmtobmp %p%block >%p%%d%.bmp
del *.ppm>NUL

:ende
pause
exit