Hi all, I'm working on a small applet to create my own OpenCPNcharts 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.

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.

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)

Your zeeland.kap file loaded and displayed okay in OpenCPN on my PC. Here is a screenshot.

This appears to have been created using MapCal2 and mc2bsbh and possibly KapGen.

In order to display the chart, I had to know the approximate latitude and longitude. So, I looked at the border polygon values in the header. Then, I centered my OpenCPN at that corner.

You could right click on the chart canvas in OpenCPN and select "Center View". Enter "51 42 N" for latitude and "4 27 E" for longitude. The Center View dialog box is in the screenshot. You might have to zoom in or out to see the chart. It is usually easier to find new charts if you have "Show Chart Outlines" enabled in O.

Thanks, after checking everything I reinstalled OpenCPN. Now they'll show up fine, strangely with use of the same versions..

@rooiedirk
I'm already on Zeilersforum Just thought there was more knowledge on openCPN and kap files over here. When the full workflow is done and results are satisfying for me, Ill definitely share it on Zeilersforum. But for now mainly the interpolation-part is a bit tricky. Give me a week!

Thanks for checking Paul, but strangly it still doesn't work for me. I indeed know the location of the chart and chart outlines are also enabled (they work for others).

for now, the charts are indeed generated with the use of mc2bsbh and a manual MapCal calibration. But as soon I can see a little it of chart on my screen, I'll skip that step.

What is your openCPN version?

Yesterday, when I made the screenshot, I used my build of OpenCPN 4.8.0 modified by commits through 07 Sep. 2017 made by bdbcat, the lead developer.

This morning, I used the official release of OpenCPN 4.8.0 for Windows, and it displays your sample chart the same as in my screenshot.

Whenever a KAP is added to OpenCPN's Chart Directories you should have the program run the "Scan Charts and Update Database". This also should be run if you make a change to a KAP that was previously in the chart database. Also, if you use chart groups other than the default "All Active Charts" group you must make sure that the new chart is included in the chart group that you are using.

Whenever a KAP is added to OpenCPN's Chart Directories you should have the program run the "Scan Charts and Update Database". This also should be run if you make a change to a KAP that was previously in the chart database. Also, if you use chart groups other than the default "All Active Charts" group you must make sure that the new chart is included in the chart group that you are using.

We do have computers, haven't we?
Why the software doesn't do that by itself automatically?
There is something wrong.

We don't all have super fast computers and we don't want the program wasting valuable time scanning for files that probably have not changed in many days. There is nothing wrong here.

A modern operating system knows when a file or the content of a folder has changed. Anyway there is no support for 20 year old computers in OCPN. So this argumentation is wrong.
Changing or adding a chart file should result in a new database scan automatically. Any smart developer can code that.