Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 09-05-2013, 14:29   #1
Registered User
 
egodsey's Avatar

Join Date: Jul 2012
Location: Point Venture, TX
Boat: Hunter 25.5
Posts: 17
Images: 3
Using a PDF chart w/ OpenCPN

This post is to answer to a question I asked myself: How can I convert a PDF chart so that I can use it with OpenCPN? This question may have been already been answered elsewhere in the OpenCPN Forum ... but I could not find the complete answer in one place, hence this post.

Background: I live (and sail) in the US. Thus getting offshore/coastal charts compatible with OpenCPN is not a problem. But I live (and sail) on Lake Travis (near Austin, TX). Lake Travis (and other inland lakes) are NOT covered by the free NOAA charts. One local government entity, the Lower Colorado River Authority (LCRA), does publish PDFs of charts for several of the lakes on the Lower Colorado River (specifically Lake Travis, Lake LBJ and Lake Buchanan).

LCRA Maps | Highland Lakes

Charts for these lakes (and other inland lakes in the US) are available for the Navionics Marine & Lakes US iPhone/iPad app. But the Navionics app is not a complete chartplotter, so if I want to get some on the water time with a real chartplotter then I needed to figure out how to use these LCRA PDFs with OpenCPN.

The OpenCPN User Manual (OpenCPN User Manual | Official OpenCPN Homepage) and the list Supplementary Software (Supplementary Software | Official OpenCPN Homepage) are very complete. Study of these two documents convinced me that if I was willing to use a DOS command line interface or to use Linux then all of the conversion tools I needed were available. But since I had not done any serious software integration in over 20 years this really wasn't a live option. For the most part I am content to live as a Windows user ... thus I was looking for a Windows solution. I suspect that for every sailor that is comfortable with Linux and/or a DOS command line interface there are 1,000 (or even 10,000) who are Windows users.

With that background, here is the answer to the question: How can I convert a PDF chart so that I can use it with OpenCPN?

It is a five step process:

1. Convert the PDF to a BMP file
2. Convert the BMP to a calibrated WCI file
3. Convert the WCI file to calibrated BMP file
4. Convert the calibrated BMP to a KAP file
5. Install the KAP file into OpenCPN

1. Convert the PDF to a BMP file

I suspect there are several Windows programs (and probably some on-line services) available to do this conversion. I happen to have Adobe Photoshop Elements 4.0 so that is what I used. One key thing here is to correctly specify the resolution of the output (BMP) file. On Elements 4.0 this is done at the start, on the "Import PDF" screen. And my setup defaults to 72dpi (screen resolution) so I had to specifically set the "Resolution" to something more appropriate. I used 300dpi.

Obviously this does NOT improve the accuracy of the resulting chart, but it does it make for a "cleaner" screen when viewing the chart under OpenCPN. NOTE: All of the warnings about "over zooming" still apply ... and even if the OpenCPN "OverZoom" warning is NOT visible in the upper left-hand of the screen ... you might still be over zoomed. Chart accuracy is a function of the accuracy of the original PDF chart and the care/accuracy of your calibration. Consider yourself warned.

Also, be advised that the PDF to BMP conversion can be a lengthy process. On my desktop machine it took several minutes for Elements 4.0 to convert each PDF chart. I suspect the process might get rather unwieldy on an underpowered laptop without much memory.

2. Convert the BMP to a calibrated WCI file

Apparently the standard Windows calibration program is MapCal_2.exe that was originally developed for SeaClear. It can be readily downloaded ... do a simple Google search.

Use of MapCal_2.exe is fairly straightforward ... but here are some hints that might save you some time:
- Use "File" "Open Image" to load the .BMP file you created in Step. 1.
- Then use "Edit" "Chart Information" to enter a "Chart Name" ... to select a "Projection:" type and to enter a "Scale: 1/". Example: Many small area maps/charts in the US (USGS topo maps for example) are "Mercator" projections with a Scale of 1:24,000.
- Then click on the "Cal" tab. Position the cross-hair over a known location ... click the right mouse button ... select "Add New Cal. Point" ... enter the Lat/long of the point ... then repeat for second point in the opposite corner.
- Then click the "Lock Lat & Long" box ... and select "File" "Save Calibration".
- Then select "Tools" "Convert" "Current to WCI". Pay attention to the file name and location of the output calibrated WCI file.

3. Convert the WCI file to calibrated BMP file

While still in MapCal_2.exe use it to convert the calibrated WCI file to a calibrated BMP file.
- Use "File" Open Image" to load the calibrated WCI file you created in Step 2.
- Then select "Tools" "Convert" "Current WCI to BMP". As before, pay attention to the file name and location of the output calibrated WCI file.

4. Convert the calibrated BMP to a KAP file

Fortunately for me Mr. Erik Holewijn has written a Windows program (HelpCal.exe) that uses the conversion tools mentioned in the list of OpenCPN Supplementary Software. To use it you will need to download both HelpCal.exe and the tools: mc2bsbh.exe, nconvert.exe and tifbsb.exe.
Here is that thread: http://www.cruisersforum.com/forums/...p-43352-2.html

HelpCal.exe is very straightforward. The output is a KAP file that OpenCPN can use directly.

5. Install the KAP file into OpenCPN

The instructions for loading charts into OpenCPN are also rather straightforward, but here are the basics:
- In OpenCPN select the "Options Menu" ... that's the "wrench" icon.
- Select "Charts" at the top of the page
- Click on "Add Directory" ... then select the Directory of the new KAP file you created in Step 4.
- Then select appropriate "Update Control" at the bottom of the page.

So there you have it. At this juncture the charts that started out as PDFs should now be visible on OpenCPN.
egodsey is offline   Reply With Quote
Old 11-05-2013, 10:05   #2
Registered User
 
hwecken's Avatar

Join Date: Feb 2012
Location: Germany
Boat: HR382
Posts: 111
Re: Using a PDF chart w/ OpenCPN

thank you very much for the step by step description
hwecken is offline   Reply With Quote
Old 12-05-2013, 12:23   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: Using a PDF chart w/ OpenCPN

egodsey....

Coincidence: I used to sail and race on Lake Travis, in those years when there was water available. Lived in Austin for years.

I'd enjoy seeing a screen shot of your converted pdf charts.

Dave
bdbcat is online now   Reply With Quote
Old 13-05-2013, 07:36   #4
Registered User
 
egodsey's Avatar

Join Date: Jul 2012
Location: Point Venture, TX
Boat: Hunter 25.5
Posts: 17
Images: 3
Re: Using a PDF chart w/ OpenCPN

Dave,

Here are a couple of screen shots ... around AYC.

Regards,

E.
Attached Thumbnails
Click image for larger version

Name:	OpenCPN_Screen_1.jpg
Views:	309
Size:	438.1 KB
ID:	60750   Click image for larger version

Name:	OpenCPN_Screen_2.jpg
Views:	294
Size:	439.3 KB
ID:	60751  

egodsey is offline   Reply With Quote
Old 13-05-2013, 08:11   #5
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: Using a PDF chart w/ OpenCPN

egodsey....

Thanks for the shots. Very cool.
How is the lake level? Is the "Sometimes Island" Elvis shrine still out there?

Dave
bdbcat is online now   Reply With Quote
Old 14-01-2018, 11:27   #6
Registered User

Join Date: Jan 2018
Posts: 2
Re: Using a PDF chart w/ OpenCPN

Hello egodsey,

Thank you for documenting in detail the steps to convert from pdf to kap file. I'ts been a number of years since your post, so this may not reach you, but.... Any chance you have the .kap files that you would be willing to share? I'm looking to do the same thing (view lake travis chart on opencpn).

Thanks in advance.
travissailor is offline   Reply With Quote
Old 14-01-2018, 22:45   #7
Registered User
 
egodsey's Avatar

Join Date: Jul 2012
Location: Point Venture, TX
Boat: Hunter 25.5
Posts: 17
Images: 3
Re: Using a PDF chart w/ OpenCPN

Lake Travis is on two KAP files which I am happy to share with you.

You are welcome to download them from this DropBox folder.

Regards,

E. Godsey
egodsey is offline   Reply With Quote
Old 15-01-2018, 01:05   #8
Registered User

Join Date: May 2012
Posts: 1,227
Re: Using a PDF chart w/ OpenCPN

If you want to try an early OpenCPN beta, PhotoLayer_pi (Windows only at present):

https://github.com/Rasbats/photolayer_pi/releases

HowTo guide is here:

https://opencpn.org/wiki/dokuwiki/do...ins:photolayer

With SASPlanet. Find your area/map.

Stitch and save as a WGS84 geotiff.

Include the Alpha channel if you want transparency with OpenGL.

Use the plugin to open the GeoTiff.

There are problems with saving as a KAP at the moment.

Mike
Rasbats is online now   Reply With Quote
Old 15-01-2018, 06:05   #9
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Using a PDF chart w/ OpenCPN

Thanks egodsey, we've added your notes Supplementary Software > PDF to Kap

Mike if you want to write that up more completely, we can add it, if you think its ready.
rgleason is offline   Reply With Quote
Old 15-01-2018, 06:21   #10
Registered User

Join Date: Mar 2010
Location: QC, Canada
Boat: Kelt 8.50
Posts: 190
Re: Using a PDF chart w/ OpenCPN

An easy way of converting images to kap is using the weatherfax plugin.

In the case of pdf images:

- Extract and save them in a supported format (gif, png tiff) with your preferred image editor.

- Open them in O with the weatherfax plugin.

- Calibrate them.

- Export them.

I use that to add patches to RNC charts

Jean-Marie
houlejm is offline   Reply With Quote
Old 15-01-2018, 14:11   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Using a PDF chart w/ OpenCPN

Thanks, Jean-Marie, use of weatherfax wizard is a good technique.
rgleason is offline   Reply With Quote
Old 15-01-2018, 14:36   #12
Registered User

Join Date: Jan 2018
Posts: 2
Re: Using a PDF chart w/ OpenCPN

Thank you very much!
travissailor is offline   Reply With Quote
Reply

Tags
opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Advertise Here


All times are GMT -7. The time now is 07:24.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.