Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 08-05-2020, 04:13   #1
Registered User

Join Date: May 2012
Posts: 1,215
RTZassist - OpenCPN is not an ECDIS

Ok, but there are some people interested in using OpenCPN to create a route that can be transferred to an ECDIS.

There is now an approved standard for route exchange between different manufacturers of ECDIS - the RTZ file format. The schema is here:

Route Exchange (RTZ)

As a baby step I have created a tool that translates OpenCPN GPX files to/from RTZ. This includes validation with RTZ 1.1 schema and also the provisional RTZ 1.1 schema. The app uses the Xerces parser and TinyXML2.

Norway has embraced the concept of recommended routes and a number are available. These can be translated and displayed in OpenCPN.

https://routeinfo.no/faq

The alpha version of what I am calling 'RTZassist' is here:

https://github.com/Rasbats/opencpn.r...eases/tag/v0.1

At the moment there is only a zip file in the release with a Windows '.exe', that can be used from the folder. An installer will follow.

If anyone with access to an ECDIS which has been updated to handle RTZ files could give the translation products a test that would be very much appreciated.

Mike
Rasbats is offline   Reply With Quote
Old 09-05-2020, 10:14   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: RTZassist - OpenCPN is not an ECDIS

Mike

Nice project.
Stuck to local cruising in Sweden this summer....
The Swedish Maritime Administration (SMA) publishes the official pilot routes to all harbors in .rtz, so I made a try to compile on Ubuntu 20.04..

Quote:
In file included from /home/thomas/Sailing/OpenCPN/Plugins/opencpn.rtz.assist-0.1/src/RTZassistPanelMain.cpp:2:
/home/thomas/Sailing/OpenCPN/Plugins/opencpn.rtz.assist-0.1/src/load-grammar-sax.h:8:10: fatal error: xercesc/dom/DOM.hpp: No such file or directory
8 | #include <xercesc/dom/DOM.hpp>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Thomas
cagney is offline   Reply With Quote
Old 09-05-2020, 10:35   #3
Registered User

Join Date: May 2012
Posts: 1,215
Re: RTZassist - OpenCPN is not an ECDIS

Thomas...

Thanks. Do you have 'xerces 3.2.2' on your box? I will have a look at a Linux compilation shortly.

Mike
Rasbats is offline   Reply With Quote
Old 09-05-2020, 11:55   #4
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: RTZassist - OpenCPN is not an ECDIS

Mike
I was missing the dev package.
Still some minor errors in compilation.
I'll wait until you have had a chance to look at Linux.
Thomas
cagney is offline   Reply With Quote
Old 10-05-2020, 08:18   #5
Registered User

Join Date: May 2012
Posts: 1,215
Re: RTZassist - OpenCPN is not an ECDIS

Thomas...

Updated the code to compile on both Linux and Windows:

https://github.com/Rasbats/opencpn.r...eases/tag/v0.2

See GitHub for more information. An executable file is available, which could be run from 'Terminal' on my machine. I am off to look at the Swedish Maritime Administration (SMA) files.

Mike
Rasbats is offline   Reply With Quote
Old 10-05-2020, 08:30   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,220
Re: RTZassist - OpenCPN is not an ECDIS

Mike..
here's one example:
https://www.sjofartsverket.se/en/Mar...via-Marstrand/
Hakan is offline   Reply With Quote
Old 10-05-2020, 08:31   #7
Registered User

Join Date: Feb 2011
Posts: 1,111
Re: RTZassist - OpenCPN is not an ECDIS

Maybe it is not an ECDIS, but I can assure you that it seem better than many.
I have seen too many turning to DR and others with erronous positioning as much as 300 meters with their charts system. All this over a 20 years period.
Bye
P_Dub is offline   Reply With Quote
Old 10-05-2020, 09:04   #8
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,220
Re: RTZassist - OpenCPN is not an ECDIS

Mike..
First test on Win10. Work fine with the rtz route from SE-SMA Marstrand to Uddevalla.
Håkan
Attached Thumbnails
Click image for larger version

Name:	rouetUA.jpg
Views:	134
Size:	38.6 KB
ID:	214745   Click image for larger version

Name:	route.jpg
Views:	160
Size:	118.5 KB
ID:	214746  

Hakan is offline   Reply With Quote
Old 10-05-2020, 09:52   #9
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: RTZassist - OpenCPN is not an ECDIS

Mike

Compiled fine on Ubuntu 20.04 (a bunch of warnings but no show-stopper).
I agree with Håkan.
I found out that I was wrong about SMA. All routes are not available in rtz, yet. SMA:s standard format, at the moment, is TRANSAS file-format .rt3, and excel.

Thank you very much!
Thomas
cagney is offline   Reply With Quote
Old 10-05-2020, 10:14   #10
Registered User

Join Date: May 2012
Posts: 1,215
Re: RTZassist - OpenCPN is not an ECDIS

Thomas, Håkan... Thanks for testing.

Mike
Rasbats is offline   Reply With Quote
Old 10-05-2020, 10:25   #11
Registered User

Join Date: May 2012
Posts: 1,215
Re: RTZassist - OpenCPN is not an ECDIS

Not all the rtz are validating against version 1.0. I think a non-standard schema is being used to validate files. It would be interesting to find out whether the CIRM schema is actually being used, or some proprietary version that is close to it.

Mike
Rasbats is offline   Reply With Quote
Old 10-05-2020, 11:08   #12
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,220
Re: RTZassist - OpenCPN is not an ECDIS

Mike..
I tested to use both version 1.0 and 1.1 for the rtz source linked above. I see no difference.
Håkan
Hakan is offline   Reply With Quote
Old 10-05-2020, 12:19   #13
Registered User

Join Date: May 2012
Posts: 1,215
Re: RTZassist - OpenCPN is not an ECDIS

Håkan...

Going from RTZ to GPX the app just pulls off what it needs to make the GPX. A lot of data is thrown away.

But if you go from a GPX to an RTZ you need to use a schema to make sure it is in the correct format. If you choose schema V1.1 it will not validate against the standard, which at the moment is V1.0. An ECDIS with updated software should only recognise valid RTZ files.

Mike
Rasbats is offline   Reply With Quote
Old 10-05-2020, 23:30   #14
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,220
Re: RTZassist - OpenCPN is not an ECDIS

Quote:
Originally Posted by Rasbats View Post
Håkan...

Going from RTZ to GPX the app just pulls off what it needs to make the GPX. A lot of data is thrown away.
Mike
1)

"A lot of data" Do you've any example of these lost data? What's in a rtz route shown on a nav program fulfilling ECDIS rules not shown in our gpx format?

2)

If O should travel against ECDIS rules in this matter (routes) what needs to be done?
Hakan is offline   Reply With Quote
Old 11-05-2020, 00:02   #15
Registered User

Join Date: May 2012
Posts: 1,215
Re: RTZassist - OpenCPN is not an ECDIS

Where to start!!!

Minimal sample:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Waypoints exist in with positive and negative Lat and Lon (i.e. in all four quadrants) and route crosses the "date line" (180 degree Lon) -->
<route xmlns="http://www.cirm.org/RTZ/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
    <routeInfo routeName="RTZ1.0MandatoryElementsAndAttributes" />
    <waypoints>
        <!--  Waypoint IDs are deliberately not in rising numeric order to avoid giving impression that id should equal the index -->
        <waypoint id="11"> <position lat="34.25855000"  lon="137.17881667"/>  </waypoint>
        <waypoint id="2"> <position lat="22.2433308"   lon="-158.68618600"/> </waypoint>
        <waypoint id="43"> <position lat="-45.10568333" lon="150.38398333"/>  </waypoint>
        <waypoint id="4"> <position lat="-36.93133333" lon="20.64783333"/>   </waypoint>
        <waypoint id="0"> <position lat="-6.95285000"  lon="-32.85430000"/>  </waypoint>
        <waypoint id="5"> <position lat="44.55386667"  lon="-56.39596667"/>  </waypoint>
      </waypoints>
</route>
'id' is not the same as 'name' in RTZ. 'id' has type="xsd:nonNegativeInteger", 'name' has type="xsd:string".

In the extra files alongside 'RTZassist' you will find 'RTZ1.0MandatoryElementsAndAttributes.rtz' which gives the minimum data. You can create an OpenCPN GPX from this.

To create valid RTZ from a GPX I had to insert dummy id numbers. Also the route name must be the same as the file name, without the '.rtz' extension.

Perhaps OpenCPN waypoint properties should include id and enforce the route naming convention but this is going beyond my pay grade!

Mike
Rasbats is offline   Reply With Quote
Reply

Tags
cdi, enc, 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN 4.0 and ECDIS requirements (IEC61174) bcn OpenCPN 25 12-09-2015 09:24
OpenCPN and IHO's ECDIS data check. cagney OpenCPN 6 27-10-2013 09:22
Compliance to ECDIS Standards -- OpenCPN hennry OpenCPN 5 26-12-2012 10:03
ECS Vs. ECDIS unbusted67 Navigation 10 13-01-2011 11:30

Advertise Here


All times are GMT -7. The time now is 13:48.


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.