Transas Navigator Route Files

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Transas Navigator Route Files

Daan Steenmeijer
Hello,

I was wondering if you guys could help me out. Our ECDIS system
exports routes in the Transas proprietary .rt3 format. In order to do
anything with it I have to convert it to GPX. Now I've been using
gpsvisualiser.com since it's basically the only way I've found to be
able to do this. However I would like to have the ability to also do
this conversion when I don't have internet access. (Satellite
connections are fickle)

I've been able to figure out that the format is not that complicated.
It's basically just an XML file, and using some existing tools I've
even been able to convert it into a CSV file that I could import into
a GPX producing app (such as gpsbabel). There's just one rub:

Transas for some reason stores the coordinates as a single number with
several decimals, - for east and south, the usual method. But then it
multiplies the number by 60. Just to be annoying. Now I'm useless at
any kind of programming or scripting so this is where I fail in my own
attempts. I understand that I should be able to export to CSV, ignore
all the useless columns, divide the values in the lat/lon by 60 and
finally convert to GPX. But this is where it is beyond me.

I suspect this is an entirely trivial exercise to anyone with any
programming skills, but my abilities lie more in the mechanical arena.
Since GPSbabel is so useful for these kinds of tricky files I was
wondering if you would like to add this filetype to a future version.
Or write a style scheme for it somehow.

I will add some bits from one of these .rt3 files below, reduced to
just two waypoints so as not to fill up this mail with too much text.
I can attach a complete file if that's possible here?

Regards,

Daan


<TSH_Route RtName="Palm Beach - Panama" RtVersion="3">
    TSH RtServer route data file. Info: amo.
    <WayPoints WPCount="13" IdCounter="13">
        <WayPoint Id="1" WPName="" LegType="0" Lat="1606.400000"
Lon="-4800.400000" PortXTE="0.100000" StbXTE="0.100000"
TurnRate="0.000000" TurnRadius="0.300000" SafetyContour="0.000000"
SafetyDepth="0.000000" RudderAngle="0.000000" ArrivalC="0.000000"/>
        <WayPoint Id="2" WPName="" LegType="0" Lat="1600.000000"
Lon="-4761.000000" PortXTE="0.100000" StbXTE="0.100000"
TurnRate="0.000000" TurnRadius="0.300000" SafetyContour="0.000000"
SafetyDepth="0.000000" RudderAngle="0.000000" ArrivalC="0.000000"/>

#here I skip over the next bunch of waypoints, when it reaches the end
of the list it continues like this:

 </WayPoints>
    <Calculations CalcCount="1">
        <Calculation CalcName="Base Calculation" CalcOptions="0"
CalcForecast="0" CalcDone="0">
            <WayPointExs>
                <WayPointEx ChangedData="0" TimeZone="0"
ETA="0.000000" ETD="0.000000" Stay="0.000000" TTG="0.000000"
TotalTime="0.000000" Speed="0.000000"/>
                <WayPointEx ChangedData="0" TimeZone="0"
ETA="0.000000" ETD="0.000000" Stay="0.000000" TTG="0.000000"
TotalTime="0.000000" Speed="0.000000"/>

#There's one of these for each defined waypoint, seems to me this can
be ignored.
#Then continuing like this:

 </WayPoints>
    <Calculations CalcCount="1">
        <Calculation CalcName="Base Calculation" CalcOptions="0"
CalcForecast="0" CalcDone="0">
            <WayPointExs>
                <WayPointEx ChangedData="0" TimeZone="0"
ETA="0.000000" ETD="0.000000" Stay="0.000000" TTG="0.000000"
TotalTime="0.000000" Speed="0.000000"/>
                <WayPointEx ChangedData="0" TimeZone="0"
ETA="0.000000" ETD="0.000000" Stay="0.000000" TTG="0.000000"
TotalTime="0.000000" Speed="0.000000"/>

#Again irrelevant. The file closes out like so:

</Calculation>
    </CustomData>
</TSH_Route>

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
Loading...