Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 21-02-2021, 02:45   #1
Registered User

Join Date: Feb 2021
Location: Värmdö, Sweden
Boat: Nordic Family Boat (NF), 29
Posts: 10
Colors and symbols for vector charts

Greetings

Wanting a more Swedish look and feel of my oeSENC charts I have created a repository with some new symbols, mainly for beacons and buoys, and a few color schemes.

https://github.com/erkswede/colors_and_symbols

Cheers!
/Erik
Attached Thumbnails
Click image for larger version

Name:	Markering_684.jpg
Views:	64
Size:	106.7 KB
ID:	232967  
erkswede is offline   Reply With Quote
Old 21-02-2021, 10:19   #2
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 140
Re: Colors and symbols for vector charts

Erik, great job!

This is exactly what I wanted to see (although the swedish classic should perhaps be a bit more yellow). Now the symbols etc. are like the INT-1 symbols.

Thanks!

/LennartG
LennartG is offline   Reply With Quote
Old 21-02-2021, 12:01   #3
Registered User

Join Date: Feb 2021
Location: Värmdö, Sweden
Boat: Nordic Family Boat (NF), 29
Posts: 10
Re: Colors and symbols for vector charts

Thanks Lennart!

It's quite easy to adjust the land color. Just open the chartsymbols.xml in a texteditor, find the line
Code:
<color name="LANDA" r="255" g="255" b="196"/>
and lower the "b" value for a more yellow tone. Google "colorpicker" and you get a simple tool to get the color values right.

/Erik
erkswede is offline   Reply With Quote
Old 21-02-2021, 12:13   #4
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 140
Re: Colors and symbols for vector charts

Erik, thanks for the reply.
That is exactly what I guessed I should do so I'll play around with it. I'm comparing with e.g. chart 6142 in raster format to get the same color.
Something for tommorrow and I'll let you know.
/LennartG
LennartG is offline   Reply With Quote
Old 21-02-2021, 12:40   #5
Registered User

Join Date: Feb 2011
Posts: 830
Re: Colors and symbols for vector charts

Quote:
Originally Posted by erkswede View Post
Thanks Lennart!

It's quite easy to adjust the land color. Just open the chartsymbols.xml in a texteditor, find the line
Code:
<color name="LANDA" r="255" g="255" b="196"/>
and lower the "b" value for a more yellow tone. Google "colorpicker" and you get a simple tool to get the color values right.

/Erik
What would you suggest I have:-
<color name="LANDA" r="201" g="185" b="122"/>
Bye
P_Dub is offline   Reply With Quote
Old 21-02-2021, 13:41   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 3,111
Re: Colors and symbols for vector charts

Maybe a hint here:
https://opencpn.org/wiki/dokuwiki/do...ctor_palette&s[]=swedish
Hakan is offline   Reply With Quote
Old 22-02-2021, 00:11   #7
Registered User

Join Date: Aug 2016
Posts: 113
Re: Colors and symbols for vector charts

Great Job @erkswede.

Thx
BlackSea is online now   Reply With Quote
Old 22-02-2021, 01:15   #8
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 140
Re: Colors and symbols for vector charts

erksweede, trying out various colors my system crashed including loosing the oesenc charts.
I just change one line at a time in the xml-file with restart in between each try so no extra content. I also rotate my logs so I had almost 50 older logs available so I went back to check.
What I got in the log, and that was before I even started my modifications, was lines like:
imagpng.cpp:167 iCCP: known incorrect sRGB profile
imagpng.cpp:167 iCCP: to many profiles

Ever seen that before?
/LennartG
LennartG is offline   Reply With Quote
Old 22-02-2021, 01:52   #9
Registered User

Join Date: Feb 2021
Location: Värmdö, Sweden
Boat: Nordic Family Boat (NF), 29
Posts: 10
Re: Colors and symbols for vector charts

Lennart,

If you have crashes there is probably something you miss typed in the xml. I've done it many times.

The
Code:
imagpng.cpp:167 iCCP: known incorrect sRGB profile
imagpng.cpp:167 iCCP: to many profiles
seems to be related to color profiles stored in PNG images. These are only warning messages from the graphics library used in OpenCPN and I hope that OpenCPN treats them as such.

/Erik
erkswede is offline   Reply With Quote
Old 22-02-2021, 03:57   #10
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 140
Re: Colors and symbols for vector charts

erkswede, doubt it was an xml error, but probably a power surge or something alike.
I'm more concerned about the warning messages, you never know when they turn onto a problem.
/LennartG
LennartG is offline   Reply With Quote
Old 22-02-2021, 05:02   #11
Registered User

Join Date: Jul 2010
Location: Kalamata, Greece
Boat: Amel Sharki
Posts: 2,237
Re: Colors and symbols for vector charts

Quote:
Originally Posted by LennartG View Post
I'm more concerned about the warning messages, you never know when they turn onto a problem.
/LennartG
The warning is coming from libpng.
To fix that, first download and install srgb-icc profiles,

cower -d srgb-icc

When finished installation, convert all images to higher standards,

for x in *png; do convert $x -profile sRGB_v4_ICC_preference.icc $x; done

Voila! Warnings are gone.



You may have a look here:
http://www.color.org/srgbprofiles.xalter


You may also use the convert command from ImageMagick:
convert -strip actual_png_filename new_png_filename
CarCode is offline   Reply With Quote
Old 22-02-2021, 06:34   #12
Registered User

Join Date: Feb 2021
Location: Värmdö, Sweden
Boat: Nordic Family Boat (NF), 29
Posts: 10
Re: Colors and symbols for vector charts

Thanks @carcode
I removed the color profiles from the png:s and pushed new versions to github.
/Erik
erkswede is offline   Reply With Quote
Old 22-02-2021, 06:38   #13
Registered User

Join Date: Feb 2011
Posts: 830
Re: Colors and symbols for vector charts

It works OK, no crash, the only thing is the yellow color is a little bit too light.
I prefer th original of the Canadian chart color. Anyway, some may like it.
Thanks.
P_Dub is offline   Reply With Quote
Old 22-02-2021, 06:54   #14
Registered User

Join Date: Aug 2016
Location: Stockholm, Sweden
Posts: 140
Re: Colors and symbols for vector charts

erksweede and P_Dub, have played around and made these changes to make it look more 'Swedish classic':

<color name "LANDA" r="255" g="255" b="196"/>
to:
<color name "LANDA" r="255" g="239" b="132"/>

<color name "LANDF" r="100" g="100" b="100"/>
to:
<color name "LANDF" r="247" g="239" b="206"/>

<color name "DEPCN" r="100" g="100" b="100"/>
to:
<color name "DEPCN" r="155" g="162" b="252"/>

<color name "DEPMD" r="204" g="236" b="253"/>
to:
<color name "DEPMD" r="198" g="215" b="255"/>

<color name "DEPMS" r="204" g="236" b="253"/>
to:
<color name "DEPMS" r="165" g="186" b="255"/>

<color name "DEPVS" r="150" g="194" b="248"/>
to:
<color name "DEPVS" r="132" g="158" b="255"/>

I'm a good bit closer but have not been able to get contour lines between 'depth categories' to show as expected. Thought it would be 'DEPCN' but that seems not to be the case (or it is overwritten later in the file).
The page that Håkan referenced has however all the contour lines displayed.
Are using the depth settings: Shallow depth = 3.00 meters, Secure depth = 6.00 and Deep water = 10.00, all in meters.
/LennartG
LennartG is offline   Reply With Quote
Old 22-02-2021, 07:56   #15
Registered User

Join Date: Feb 2011
Posts: 830
Re: Colors and symbols for vector charts

Sorry, but not for me with a bluehish color for the sea depth of more than 10 m. The international recongnise white color should be kept. The land might needs a bit of change but not too much, you are still too yellow light.
Bye
P_Dub is offline   Reply With Quote
Reply

Tags
charts

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
weird colors especially for vector charts RickyEM OpenCPN 2 01-06-2020 16:38
Editing colors and symbols when importing GPX BradU20 OpenCPN 5 03-05-2019 12:34
Light symbols on oeSENC charts to large baltika_no_9 OpenCPN 12 07-09-2017 07:41
Raster Charts or Vector Charts - Which is Best for Electronic Navigation ? Alecadi Navigation 19 28-03-2012 19:56
DNC Vector compared to ENC vector chart? adjuvantjfoster Marine Electronics 8 17-09-2006 17:19

Advertise Here


All times are GMT -7. The time now is 12:39.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.