Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 15-08-2018, 15:01   #1
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Pacific - Costa Rica
Boat: Sailboat
Posts: 1,223
Calibrate charts in SVG format for OpenCPN ?

Colombia's Oceanographic Institute publishes a cruising guide in pdf form.

see close to the bottom of this page:
https://www.cioh.org.co/index.php/libros.html

Embedded in there are >70 high quality charts. One can zoom way in and clearly see the details. I would like to use those charts and calibrate them to use in OpenCPN. So far I only know to produce KAP files, which relies on bmp/jpg/png raster images.

I was able to extract the charts as SVG files, not loosing detail, I think. Converting the SVG to see all detail on a raster bitmap will produce very large files.

Any better ideas?

I attach a sample file for people to play with (remove the pdf extension.

Thanks


Dirk
Attached Files
File Type: pdf page-36.svg.pdf (1.87 MB, 20 views)
__________________

LeaseOnLife is online now   Reply With Quote
Old 15-08-2018, 20:27   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,210
Re: Calibrate charts in SVG format for OpenCPN ?

Leaseonlife,


From the Chart Conversion Manual, it does not look like imgkap supports svg.
So you'll need to convert svg to another known format png, jpg tif and then to kap.
Then you can add the hearer postion information I think.
svg to png and svg to jpeg

I've never done this. Thomas may have some pointers for you.
They look worthwhile to do!
Attached Thumbnails
Click image for larger version

Name:	Screenshot (197).jpg
Views:	24
Size:	271.3 KB
ID:	175563  
__________________

rgleason is offline   Reply With Quote
Old 15-08-2018, 23:38   #3
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 3,228
Re: Calibrate charts in SVG format for OpenCPN ?

SVG is a vector format.

Inkscape has a function to export svg files to png/raster.
You can define if you want to export complete pages or some selections.
bcn is offline   Reply With Quote
Old 16-08-2018, 07:31   #4
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Pacific - Costa Rica
Boat: Sailboat
Posts: 1,223
Re: Calibrate charts in SVG format for OpenCPN ?

Yes, but any conversion to raster and trying to keep all the details will lead to very large files. I was hoping for a way to SVG ==> S57 or something like it.
LeaseOnLife is online now   Reply With Quote
Old 16-08-2018, 08:17   #5
Registered User

Join Date: Jun 2015
Posts: 326
Re: Calibrate charts in SVG format for OpenCPN ?

Quote:
Originally Posted by LeaseOnLife View Post
Yes, but any conversion to raster and trying to keep all the details will lead to very large files. I was hoping for a way to SVG ==> S57 or something like it.
The only free S57 writer I'm aware of is the josm OSM --> S-57 one and I've no idea if it's actually working.


So maybe SVG --> KML --> OSM --> S-57 but it won't be easy.


Did you try SVG --> KAP ? With a reasonable DPI and few colors it shouldn't be too bad, cf, official NOAA,NZ RNC size or the old 'community' international NOAA0 set.
did-g is offline   Reply With Quote
Old 16-08-2018, 08:55   #6
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 3,228
Re: Calibrate charts in SVG format for OpenCPN ?

SVG as such does not know about S-57 objects.
Would be a nice project, indeed.


The charts you found are probably created the other way around. From S-57 --> SVG


EDIT: ArcGIS will export S-57 --> SVG
bcn is offline   Reply With Quote
Old 16-08-2018, 09:08   #7
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Pacific - Costa Rica
Boat: Sailboat
Posts: 1,223
Re: Calibrate charts in SVG format for OpenCPN ?

Quote:
Originally Posted by bcn View Post
SVG as such does not know about S-57 objects.
Would be a nice project, indeed.


The charts you found are probably created the other way around. From S-57 --> SVG

possible, but I don't have access to these :-)


on edit: the source I have is the pdf file I mentioned in first post. I will post a single page pdf with just the page for the svg file I posted.
LeaseOnLife is online now   Reply With Quote
Old 16-08-2018, 09:12   #8
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Pacific - Costa Rica
Boat: Sailboat
Posts: 1,223
Re: Calibrate charts in SVG format for OpenCPN ?

the pdf from which I extracted the svg:
Attached Files
File Type: pdf single-page-pdfs-36.pdf (352.2 KB, 23 views)
__________________

LeaseOnLife is online now   Reply With Quote
Reply

Tags
cal, charts, enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I open Norway vector SHAPE WGS-84 format charts in opencpn? MOVE OpenCPN 8 09-05-2016 06:22
Can Garmin format be converted into a format to use in OpenCPN..... Syserenity OpenCPN 1 16-07-2013 10:41
SVG Rating? snort Monohull Sailboats 3 03-03-2013 18:54
How Calibrate the Chart Position ? Algarve OpenCPN 3 27-02-2012 20:18
howto rebuild SVG icon ? manuprenlair OpenCPN 2 17-12-2011 11:35



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 19:36.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.