Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-09-2020, 23:04   #1
Registered User

Join Date: May 2012
Posts: 877
RTZ route plugin

Using this thread for discussion about creating a plugin to import/export RTZ route files to/from OpenCPN.

Related RTZ information is held here:
https://www.cruisersforum.com/forums...ml#post3134777

Mike
Rasbats is online now   Reply With Quote
Old 29-10-2020, 02:02   #2
Registered User

Join Date: May 2012
Posts: 877
Re: RTZ route plugin

A starting point for testing radius turns. Initial legacy plugin is here:

https://github.com/Rasbats/RTZroute_...eases/tag/v0.1

Windows installer and an example of a route created with radius turns are included.

A radius element had to be added to the OpenCPN namespace. No instructions in the manual yet but...

#1. Edit GPX. Start with a saved OpenCPN GPX route file.

#2. Add a radius at the alter course waypoint(s).

#3. Save the edited waypoints as a new GPX route file.

#4. Generate the final radius turn GPX, opening the file from #3 and saving to a new file.

#5. Import the radius GPX from #4 into OpenCPN.
Attached Thumbnails
Click image for larger version

Name:	rtz_dialog.jpg
Views:	15
Size:	65.2 KB
ID:	226078   Click image for larger version

Name:	cattewater_route.jpg
Views:	14
Size:	247.6 KB
ID:	226079  

Click image for larger version

Name:	cattewater_turns.jpg
Views:	16
Size:	257.7 KB
ID:	226080  
Rasbats is online now   Reply With Quote
Old 29-10-2020, 08:38   #3
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 3,956
Re: RTZ route plugin

So you are creating additional intermediate legs being arcs with radius r.
bcn is offline   Reply With Quote
Old 29-10-2020, 09:24   #4
Registered User

Join Date: May 2012
Posts: 877
Re: RTZ route plugin

Almost. They are straight lines joining points on the arc of the turn. Follows an idea from P_Dub.

This is the only way I can see at the moment for importing an RTZ into OpenCPN and showing the turn. The turn could be drawn like 'ocpn_draw' but persisting this in an OpenCPN GPX file?

I wanted a simple way of storing the radius at each turn. The edited GPX (before actual turn generation) lends itself to making an export to another format (RTZ is first on the list).

If the OpenCPN base code could recognise the waypoint radius tag and interpret that as a series of lines we would get closer to using RTZ as an internal format. The start and finish of the turn might be needed as well. More tags!

Drawing the turn as a temporary layer using o_draw ideas would be useful in seeing how a certain radius works on the chart (Wartsila iSailor does this).

Mike
Rasbats is online now   Reply With Quote
Old 29-10-2020, 16:03   #5
Registered User

Join Date: Feb 2011
Posts: 782
Re: RTZ route plugin

Sorry Mike, but I can not get it to work, even after swithching my antivirus off.
What am I missing?
P_Dub
P_Dub is offline   Reply With Quote
Old 30-10-2020, 01:16   #6
Registered User

Join Date: May 2012
Posts: 877
Re: RTZ route plugin

P_Dub...

I am working with OpenCPN 5.2.2. The plugin is installed like other legacy plugins. No special requirements. Can be uninstalled easily on Windows.

Suggest working with these files (remove .pdf):

Cattewater.gpx.pdf (just a normal OpenCPN route file. No radius turns)

Cattewater.edits.gpx.pdf
(Example of a GPX with added radius turn markup - if opened with 'Edit GPX' will show a radius value if you select a waypoint - not first or last) No radius turns will show if imported because the turns have not been generated.

Cattewater.edits.with.turns.gpx.pdf
(Example of a generated 'radius turn gpx' - if imported OpenCPN will show the radius turns)

Test Method

#1 'Edit GPX' using the 'Cattewater.gpx' file. This produces a list of waypoints. Select a waypoint and add a radius either by typing in the value or by using the slider. Press 'Update' to save the radius turn for that waypoint.

#2 Important: Use 'Update' for saving an individual waypoint radius, by pressing the 'Update' button. Repeat for other waypoints where you want to add a radius. If you don't update after you change the radius at a waypoint no radius will be saved for that waypoint.

#3 'Save' all the edits to an intermediate gpx using a new file name - probably not 'Cattewater.edits.gpx'. For example 'test.edits.gpx'. This will have the markup ready for generating a radius turn GPX. If imported radius turns will not be shown. If opened with 'Edit GPX' the plugin will show a radius value at selected waypoints which have a radius.

#4 'Generate GPX'. This allows you to open the 'test.edits.gpx' file and save to the final 'radius turn gpx' - for example 'test.turns.gpx'.

#5. Import the 'radius turn GPX' using 'route manager' from OpenCPN and the radius turns will show on the chart.


Mike
Attached Thumbnails
Click image for larger version

Name:	edit_gpx.jpg
Views:	10
Size:	115.4 KB
ID:	226128  
Rasbats is online now   Reply With Quote
Old 30-10-2020, 05:50   #7
Registered User

Join Date: Feb 2011
Posts: 782
Re: RTZ route plugin

Mike the save button does not seem to work. There must be some problem with it. (I hope it is not a case of 16 to 18 on my side).
Thanks for helping.
P_Dub is offline   Reply With Quote
Old 30-10-2020, 06:39   #8
Registered User

Join Date: Feb 2011
Posts: 782
Re: RTZ route plugin

Quote:
Originally Posted by P_Dub View Post
Mike the save button does not seem to work. There must be some problem with it. (I hope it is not a case of 16 to 18 on my side).
Thanks for helping.
I am having 5.2.4 OpenCpn.
P_Dub is offline   Reply With Quote
Old 30-10-2020, 07:26   #9
Registered User

Join Date: May 2012
Posts: 877
Re: RTZ route plugin

P_Dub...

Email sent. Your problem shows I need to catch an error if 'Save' is used and no waypoints are shown in the list or are available for saving.

Mike
Rasbats is online now   Reply With Quote
Old 12-11-2020, 02:52   #10
Registered User

Join Date: May 2012
Posts: 877
Re: RTZ route plugin

Latest version of the plugin and a Windows installer is here:

https://github.com/Rasbats/RTZroute_...eases/tag/v0.5

On this page you can download a guide which explains how to make a GPX with radius turns.

The plugin also allows the import of an RTZ file and conversion to GPX. It also enables validation of any RTZ against the official schema for that format. GPX can be converted to RTZ.

Support for other ECDIS formats such as Transas .rt3 and .rt4 will be added later.

TODO: Edit CMakeLists.txt for finding Xerces on Linux and MacOSX. Xerces would need to be installed independently of the plugin on these OS.

Mike
Rasbats is online now   Reply With Quote
Reply

Tags
plug, route

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
autopilot route plugin seandepagnier OpenCPN 44 26-09-2020 06:03
DR Plugin - splitting up GPX route files Rasbats OpenCPN 30 09-02-2019 12:42
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
Accessing active route data in the Plugin interface? Brett Muir OpenCPN 2 07-07-2016 17:34
Broken download link, Route plugin Northern Irelan OpenCPN 1 21-04-2015 16:32

Advertise Here


All times are GMT -7. The time now is 10:02.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.