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 01-03-2010, 14:39   #1
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 136
Question No Waypoints Visible After Importing GPX in OpenCPN

I really like OpenCPN but somehow I cannot import a GPX-file containing waypoints. Or, to be precise, I can import a GPX-file but no waypoints show up on the OpenCPN screen. The waypoints I use are in the area of the Dutch Frisian Isles (say 53 N / 005 East) and the file contains 1272 buoys. Importing the GPX-file in Oziexplorer works fine but OCPN seems to ignore these waypoints. Maybe this is because the file contains only waypoints and no tracks?
Anybody any idea how to fix that problem?
I have attached the GPX-file (lwwgpx.gpx) to this post......I think....(sorry, I'm not very familiar with the procedures yet).

Hmmmm, it seems I cannot upload a gpx-file. So if someone thinks he/she can help, drop me an email and i'll mail the file.

Roel
Roel Smidt is offline   Reply With Quote
Old 02-03-2010, 08:34   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Change the file-extension to .doc, for example "some-file.gpx.doc" and you will be able to upload it to this forum.

Without seeing the file, it is impossible to solve your problem.

Thomas
cagney is offline   Reply With Quote
Old 02-03-2010, 11:33   #3
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 136
Thomas, thank you for that suggestion . Here's the file. The original name was lwwgpx.gpx, so it will have to be renamed again before you can use it as a gpx-file.

Roel
Attached Files
File Type: doc lwwgpx.doc (174.6 KB, 268 views)
Roel Smidt is offline   Reply With Quote
Old 02-03-2010, 13:50   #4
Registered User

Join Date: Feb 2010
Posts: 619
Roel...

This is because of default visibility for marks in OCPN. If you add to each waypoint

<extensions>
<opencpnrop>A,0,0,0,1</opencpnrop>
</extensions>

you will have them imported as visible.

You could also change the <sym>.

In my series of patches I tweaked a bit the visibility defaults, so your file displayed at once (after some computation time, that is ... ).

Piotr
Attached Thumbnails
Click image for larger version

Name:	buoys_s.jpg
Views:	205
Size:	16.0 KB
ID:	13633  
PjotrC is offline   Reply With Quote
Old 02-03-2010, 14:33   #5
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Quote:
Originally Posted by PjotrC View Post
Roel...

This is because of default visibility for marks in OCPN. If you add to each waypoint

<extensions>
<opencpnrop>A,0,0,0,1</opencpnrop>
</extensions>

you will have them imported as visible.

You could also change the <sym>.

In my series of patches I tweaked a bit the visibility defaults, so your file displayed at once (after some computation time, that is ... ).

Piotr
Hint of the day:

If you put code tags around code (use the # button), special characters will not get interpreted as emoticons:

Example:

You have:

<extensions>
<opencpnrop>A,0,0,0,1</opencpnrop>
</extensions>

But, if you used the code tags, you would get:

Code:
<extensions>
<opencpn:prop>A,0,0,0,1</opencpn:prop>
</extensions>
-dan
dacust is offline   Reply With Quote
Old 03-03-2010, 07:49   #6
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almerķa, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Nice, GPX never really worked for me either, can't wait to try the patches..
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 03-03-2010, 09:37   #7
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Roel Smidt

I have converted your Ozi file so it is visible in OpenCPN.
The original file has a comment tag, were every wpt has a description, this is lost in OpenCPN as there is no field to display it. In OCPN you can chose which symbol to display for each wpt, you can even use custom symbols if you like.
There are no such tag in the original file, so OCPN is left to display the default - a circle. This can easily be changed to another symbol in the script below.

To do this conversion I used this ruby script
Code:
#!/usr/bin/ruby -w

infile = ARGV[0]


 open("ozcpn.gpx","w") do |p| 
  lines= open(infile,"r") 
  lines.each do |line|  
   if line =~ /\<desc\>/
     p.puts line
#uncomment the line below to get triangles instead of circles
#   p.puts "<sym>triangle</sym>"
     p.puts  "<extensions>"
     p.puts  "     <opencpn:prop>A,0,1,1,1</opencpn:prop>"
     p.puts  "</extensions>"
   else
     p.puts line
   end
 end
  end
To convert use this script with the original gpx file as an argument. This will produce the file ozcpn.gpx.
Feel free to customize the script !

It's interesting to see how this amount of wpt:s really slows OCPN down. On my old box it takes about 25 seconds to load all way points. Maybe not a fair test, as there are a lot of fields that OCPN don't know what to do with.

Thomas
Attached Files
File Type: doc ozcpn.gpx.doc (263.0 KB, 167 views)
cagney is offline   Reply With Quote
Old 03-03-2010, 10:50   #8
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 136
Thanks!

Thomas, Piotr and Dan,

Thank you very much for your input and efforts to help me out. This was just the kind of help I needed.

It probably would have taken me months to figure it out by myself (if not years..)

Regards,

Roel
Roel Smidt is offline   Reply With Quote
Old 15-03-2010, 00:03   #9
Registered User

Join Date: Mar 2010
Posts: 10
I have the same problem, i tried to change my ozi waypoint files but i cannot see them if i import the file (martingale.gfx)

If i import the example tsr2009ex.gfx i see the track.
if i change in the file "trk" by "wpt", i see always the track and only the track
I would like to see circles or triangles and names on the map
Attached Files
File Type: doc martingale.gpx.doc (19.1 KB, 129 views)
martin.gale is offline   Reply With Quote
Old 15-03-2010, 09:41   #10
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
martin.gale

Quote:
I would like to see circles or triangles and names on the map
That is exactly what I see when I import your file !!!

Thomas
Attached Thumbnails
Click image for larger version

Name:	Oz.png
Views:	248
Size:	58.4 KB
ID:	13879  
cagney is offline   Reply With Quote
Old 15-03-2010, 09:55   #11
Registered User

Join Date: Mar 2010
Posts: 10
I don't see anything !!!!!

Vista, Compaq CQ71, CM93 charts and BSB Charts
martin.gale is offline   Reply With Quote
Old 15-03-2010, 10:10   #12
Registered User

Join Date: Mar 2010
Posts: 10
waypoints not visible

Thomas, I forgot to thank you for trying my file
I join the map i see on my computer, the visible waypoints have been created manually, but i cannot see the others !!!
Attached Thumbnails
Click image for larger version

Name:	menorca.jpg
Views:	233
Size:	172.5 KB
ID:	13880  
martin.gale is offline   Reply With Quote
Old 15-03-2010, 10:37   #13
Registered User

Join Date: Mar 2010
Posts: 10
invisible waypoints

However all the waypoints are in Opencpn , when i export them from with gfx output, i well obtain a perfect gpx file !
martin.gale is offline   Reply With Quote
Old 15-03-2010, 10:45   #14
Registered User

Join Date: Mar 2010
Location: Den Helder, the Netherlands
Boat: Drascombe Coaster (22ft) "Seanymph"
Posts: 136
Hello Martin,

I have tried your file in OziExplorer and in OpenCPN and I can see quite a number of waypoints. You are saying that there are some waypoints not visible for you. But I don't know wich waypoints you mean. Can you give a name of a specific waypoint that does show up in OziExplorer but does not show up in OpenCPN?

Kind regards,
Roel
Roel Smidt is offline   Reply With Quote
Old 15-03-2010, 10:46   #15
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
martin.gale

Please export your "handmade" wpts that are visible, and publish the gpx file here.
Anyone else on Win, that can test Martins gpx file ??
I'm on Linux...... and it just works.

Thomas
cagney 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
Looking for GPX Files for Testing Netsurfer OpenCPN 3 10-02-2010 03:18
Converting MaxSea .wpt Routes to GPX jimbim OpenCPN 2 08-02-2010 22:38
Why Waypoints? rigormortis Navigation 26 13-01-2009 23:45
Images/photos not visible undrsol Forum Tech Support & Site Help 3 31-08-2007 11:38
Exumas Waypoints GordMay Atlantic & the Caribbean 3 22-11-2006 02:40

Advertise Here
  Vendor Spotlight
No Threads to Display.


All times are GMT -7. The time now is 09:57.


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.