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 29-03-2022, 01:55   #1
Registered User
 
Sobin's Avatar

Join Date: Feb 2021
Location: Sweden
Boat: ADEC 540
Posts: 20
Images: 8
waypoint symbols

Hi



Is it possible to change the symbol for an imported waypoint, also for whole groups?


mvh
Rüdiger
__________________
Sorry, english is not my first language
https://www.sob-international.com/
Sobin is offline   Reply With Quote
Old 29-03-2022, 02:07   #2
Registered User
 
Ivanm's Avatar

Join Date: Jan 2015
Posts: 282
Re: waypoint symbols

Use a text editor like wordpad and use "find and replace" with new icon name to replace old waypoint name
Ivanm is offline   Reply With Quote
Old 29-03-2022, 04:25   #3
Registered User
 
Sobin's Avatar

Join Date: Feb 2021
Location: Sweden
Boat: ADEC 540
Posts: 20
Images: 8
Re: waypoint symbols

Thank you Ivan


But with more than 1000 WP a bit tedious, it would be nice if there was a plugin for it.



mvh
Rüdiger
__________________
Sorry, english is not my first language
https://www.sob-international.com/
Sobin is offline   Reply With Quote
Old 29-03-2022, 04:47   #4
Registered User
 
Ivanm's Avatar

Join Date: Jan 2015
Posts: 282
Re: waypoint symbols

I did layers with 12000 and more no problem easy an quick

Ivan
Ivanm is offline   Reply With Quote
Old 29-03-2022, 08:25   #5
Registered User
 
sv_pelagia's Avatar

Join Date: Apr 2013
Location: British Columbia
Boat: Sceptre 41
Posts: 1,977
Re: waypoint symbols

Or use GPSUTILITY... this is what I use to change waypoint symbols en masse

https://www.gpsu.co.uk/
sv_pelagia is offline   Reply With Quote
Old 29-03-2022, 23:47   #6
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 318
Re: waypoint symbols

@Rüdiger Yes you can do this readily using the JavaScript plugin.
You can write a script to work through all waypoints and change the name and icon and any other details you want. You could do so on just the ones you want.

In the shared scripts library there is a script selectWaypoints which loops through all waypoints and sets their visibility depending on their location. You could start from this and modify to suite your needs.
Antipole is offline   Reply With Quote
Old 30-03-2022, 01:17   #7
Registered User
 
Sobin's Avatar

Join Date: Feb 2021
Location: Sweden
Boat: ADEC 540
Posts: 20
Images: 8
Re: waypoint symbols

Quote:
Originally Posted by Antipole View Post
@Rüdiger Yes you can do this readily using the JavaScript plugin.
You can write a script to work through all waypoints and change the name and icon and any other details you want. You could do so on just the ones you want.

In the shared scripts library there is a script selectWaypoints which loops through all waypoints and sets their visibility depending on their location. You could start from this and modify to suite your needs.

Hi Antipole

Unfortunately I'm not able to create a JavaScript myself, but thanks for the answer.


mvh
Rüdiger
__________________
Sorry, english is not my first language
https://www.sob-international.com/
Sobin is offline   Reply With Quote
Old 30-03-2022, 01:22   #8
Registered User
 
Sobin's Avatar

Join Date: Feb 2021
Location: Sweden
Boat: ADEC 540
Posts: 20
Images: 8
Re: waypoint symbols

Quote:
Originally Posted by sv_pelagia View Post
Or use GPSUTILITY... this is what I use to change waypoint symbols en masse

https://www.gpsu.co.uk/

Hi pelagia

Under the link there are some files, which one do you use exactly?



mvh Rüdiger
__________________
Sorry, english is not my first language
https://www.sob-international.com/
Sobin is offline   Reply With Quote
Old 30-03-2022, 01:53   #9
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 318
Re: waypoint symbols

Quote:
Originally Posted by Sobin View Post
Hi Antipole
Unfortunately I'm not able to create a JavaScript myself, but thanks for the answer.
r
What changes do you want to make to which waypoints?
Antipole is offline   Reply With Quote
Old 30-03-2022, 02:25   #10
Registered User
 
Sobin's Avatar

Join Date: Feb 2021
Location: Sweden
Boat: ADEC 540
Posts: 20
Images: 8
Re: waypoint symbols

Quote:
Originally Posted by Antipole View Post
What changes do you want to make to which waypoints?



Just the icon.
__________________
Sorry, english is not my first language
https://www.sob-international.com/
Sobin is offline   Reply With Quote
Old 30-03-2022, 08:02   #11
Registered User
 
sv_pelagia's Avatar

Join Date: Apr 2013
Location: British Columbia
Boat: Sceptre 41
Posts: 1,977
Re: waypoint symbols

Quote:
Originally Posted by Sobin View Post
Hi pelagia

Under the link there are some files, which one do you use exactly?



mvh Rüdiger
GPS Utility
sv_pelagia is offline   Reply With Quote
Old 31-03-2022, 01:25   #12
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 318
Re: waypoint symbols

@Sobin...

Below is a script for the JavaScript plugin that will change the icon for all displayed waypoints to 'circle'. Choose which waypoints you wish to change in the waypoints pane of the Route & Mark Manager. Copy the script into the JavaScript plugin script pane and run. You can modify as required.
[Should you have waypoints displayed in a layer, these will also be updated.]

Code:
guids = OCPNgetWaypointGUIDs();
count = 0;
for (g = 0; g < guids.length; g++){	// for each waypoint
	waypoint = OCPNgetSingleWaypoint(guids[g]);
	if (!waypoint.isFreeStanding) continue;	// skip routepoints
	if (waypoint.isVisible){
		waypoint.iconName = "circle";
		count++;
		OCPNupdateSingleWaypoint(waypoint);
		}
	}
print(count, " waypoint(s) updated\n");
Antipole is offline   Reply With Quote
Old 31-03-2022, 01:52   #13
Registered User
 
Sobin's Avatar

Join Date: Feb 2021
Location: Sweden
Boat: ADEC 540
Posts: 20
Images: 8
Re: waypoint symbols

Quote:
Originally Posted by Antipole View Post
@Sobin...

Below is a script for the JavaScript plugin that will change the icon for all displayed waypoints to 'circle'. Choose which waypoints you wish to change in the waypoints pane of the Route & Mark Manager. Copy the script into the JavaScript plugin script pane and run. You can modify as required.
[Should you have waypoints displayed in a layer, these will also be updated.]

Code:
guids = OCPNgetWaypointGUIDs();
count = 0;
for (g = 0; g < guids.length; g++){    // for each waypoint
    waypoint = OCPNgetSingleWaypoint(guids[g]);
    if (!waypoint.isFreeStanding) continue;    // skip routepoints
    if (waypoint.isVisible){
        waypoint.iconName = "circle";
        count++;
        OCPNupdateSingleWaypoint(waypoint);
        }
    }
print(count, " waypoint(s) updated\n");

Thanks Antipole

This will definitely work, but I've never worked with JAVA and I don't know where to insert this skipt. The icons can be changed individually in the waypoint manager, but unfortunately not the entire waypoint group.


mvh
Rüdiger
__________________
Sorry, english is not my first language
https://www.sob-international.com/
Sobin is offline   Reply With Quote
Old 31-03-2022, 02:05   #14
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 318
Re: waypoint symbols

Quote:
Originally Posted by Sobin View Post
Thanks Antipole
This will definitely work, but I've never worked with JAVA and I don't know where to insert this skipt. The icons can be changed individually in the waypoint manager, but unfortunately not the entire waypoint group.
mvh
Rüdiger
(1) Install the JavaScript plugin - it's available in the plugins catalogue - and enable it. Then, if need be, click on the JS icon in the menu bar so the JavaScript console is displayed.
(2) The script pane will show a default script which displays a welcome message. Click on the Run button to run this, so you get the idea.
(3) Use the Clear button to clear out the welcome script and paste in the script I gave you above and run it.

Have a look at the manual page here.

PS JavaScript is not the same as the JAVA application.
Antipole is offline   Reply With Quote
Old 01-04-2022, 01:38   #15
Registered User
 
Sobin's Avatar

Join Date: Feb 2021
Location: Sweden
Boat: ADEC 540
Posts: 20
Images: 8
Re: waypoint symbols

Hi Antipole



I did what you described, but nothing changes. I also renamed "circle" to "Wreck B" or "wreck b" respectively, no change there either.

Present Appearance - Combo! - https://www.cruisersforum.com/galler...php?i=14626&c=
Desired view - Wreck B - https://www.cruisersforum.com/galler...ge.php?i=14627

What am I doing wrong ?


mvh
Rüdiger
__________________
Sorry, english is not my first language
https://www.sob-international.com/
Sobin is offline   Reply With Quote
Reply


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
Trouble with symbols Littlechay OpenCPN 10 06-10-2016 16:23
offset doubling up of symbols and names? cm93 map sdowney1 OpenCPN 3 19-07-2016 07:05
Changing waypoint symbols en masse LewDel OpenCPN 2 07-11-2012 09:49
Problem Marks or Waypoint behavior - Symbols - OpenCPN 3.0.2 , 3.1.814 beta exe, 3.1. rgleason OpenCPN 20 19-09-2012 10:14
Strange Symbols, Raymarine Chartplotter pete33458 Navigation 11 04-02-2010 13:12

Advertise Here
  Vendor Spotlight
No Threads to Display.


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


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.