Hi all, I'm working on a small applet to create my own OpenCPN charts
from scratch (scratch==point-measurements from depths). I've gone all the way and now I'm up to the stage of converting my .png files into .kap charts
. This is my first time creating headers, using imgkap, libbsb etcetera.
For each .png image, I have the N,E,S,W extents in degrees and the size in pixels. Is it true I can build an entire header from just this data? I have no clue about resolution or whatsoever.
Now well, I thought it was that simple. So using python I created some of my own headers. None of them succeeded after converting it using imgkap.
Then I just put a .png into MapCal, do the manual calibration and then convert it using imgkap. Now, the .kap file can be opened in FME (another geo-software-package), but is not showing up in OpenCPN
Without the MapCal calibration (but my own) the log says:
5:37:53 PM: Loading chart data for C:\imgkap\zeeland.kap
5:37:53 PM: ...initialization failed for C:\imgkap\zeeland.kap
5:37:53 PM: CreateChartTableEntry() failed for file: C:\imgkap\zeeland.kap
With the MapCal calibration:
6:00:15 PM: Loading chart data for C:\imgkap\zeeland.kap
6:00:15 PM: Adding chart file: C:\imgkap\zeeland.kap
So it does seem to have effect. It's just not showing up on my screen
. Can somebody point me in the right direction of what I'm doing wrong, or is it just a stupid setting?
I've also attached the .kap file. (replac the .doc)