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 22-05-2021, 08:20   #16
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: P-sea Windplot waypoints

OK, so here we go for the tracks:

1. Replace the broken header with <gpx> and add the final </gpx> tag at the end of the file as above
2. Fix the erroneous capitalization of the trk element by replacing all the occurences of "TRK" with "trk"
3. Add the missing </trk> tag at the end of each track by replacing all the occurences of "</trkseg>" with "</trkseg></trk>" (here I hope all the tracks have only one segment as in your sample, otherwise this will result in broken GPX file)
4. Fix the broken trkpt tags by replacing all the occurences of ""</trkpt>" with ""></trkpt>" (Yes, the doublequote is part of the string)

If they have thousands of tracks and actually used colors and line styles for them, you may probably want to also do something about the proprietary (and erroneously implemented) extensions in the file (tags cmt, color and width) - Look at a GPX file containing a track with color and line style exported from OpenCPN to see the valid GPX extension implementation into which you would have to transform it.
nohal is offline   Reply With Quote
Old 23-05-2021, 21:46   #17
Registered User

Join Date: May 2021
Posts: 5
Re: P-sea Windplot waypoints

Dear nohal,

I was able to get the track over. From looking at your waypoint fix example, I created some random test track on opencpn. Then I compare it to the gpx file that P-sea generated and was able to edit and fix what was broken. I never really had any experience at programming. But thanks to your lead and example I feel like a real programmer now lol. Still a newb at it of course haha.
yuzuha is offline   Reply With Quote
Old 23-05-2021, 21:50   #18
Registered User

Join Date: May 2021
Posts: 5
Re: P-sea Windplot waypoints

O wow I didn't realize you had sent another reply with the fix. I tried to figure it out myself after your earlier reply because I thought that was the end of it. Thank you very much for all your help though.
yuzuha is offline   Reply With Quote
Reply

Tags
wind


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
Topolobampo, Sea of Cortez, Mexico -- Waypoints and Entry Info synchronicity98 Pacific & South China Sea 2 19-03-2012 08:39
Red Sea Waypoints Michaele Indian Ocean & Red Sea 1 27-04-2008 06:33
Exumas Waypoints GordMay Atlantic & the Caribbean 3 22-11-2006 02:40
Request for waypoints for eastern Caribbean NormR Navigation 7 14-12-2004 08:48

Advertise Here


All times are GMT -7. The time now is 14:07.


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.