Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 13-08-2012, 14:39   #1
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Route_pi New Finished Plugin for OpenCPN

Dear OpenCPNers,

I present to you a route-plugin for OpenCPN. The purpose of this plugin is to provide Great Circle, Limited Circle and Rhumb line plotting capability to OpenCPN. The plugin will show you: difference between great circle route, rhumb line and limited circle distance. It will also generate a route (GPX) for you, with way-points as per your requirement.

Code is hosted on GitHub: https://github.com/SaltyPaws/route_pi

Ubuntu 32 and 64 bit binary files are here: https://github.com/SaltyPaws/route_p...aster/binaries

Please email me your windows and OSX binaries, so I can also host these.
__________________

__________________
SaltyPaws is offline   Reply With Quote
Old 08-09-2012, 13:27   #2
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,291
Re: Route_pi New finished plugin for OpenCPN

Hello Salty Paws

I Have enter two point :
Start point : Long 45 N; Lat 5 O
End point : Long 55 N; Lat 35 0

When I use the button "Convert to degree", ther is no difference from 5 O and 5 E so the routes are not good !

Best regards

Gilletarom
Attached Thumbnails
Click image for larger version

Name:	2012-09-08_Enter.jpg
Views:	225
Size:	122.2 KB
ID:	46175   Click image for larger version

Name:	2012-09-08_Symetric_position.jpg
Views:	226
Size:	226.3 KB
ID:	46176  

__________________

__________________
Gilletarom is offline   Reply With Quote
Old 09-09-2012, 02:16   #3
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Re: Route_pi New finished plugin for OpenCPN

Quote:
Originally Posted by Gilletarom View Post
Hello Salty Paws

I Have enter two point :
Start point : Long 45 N; Lat 5 O
End point : Long 55 N; Lat 35 0

When I use the button "Convert to degree", ther is no difference from 5 O and 5 E so the routes are not good !

Best regards

Gilletarom
There seems to be a bug, when the values for minutes and seconds of arc are left blank. If you fill in the blank fields with "0", then the results are correct.
I had expected to be able to fill in the decimal fields directly, but get an error message if the degree,minutes and seconds fields shows an other position.
It would be nice with a reset button, that deleted all the entered values.

Apart from this, the plugin works OK, and has a couple of features that OpenCPNs new built-in Great-circle handler lacks. Such as ... the ability to handle composite routes, called "Limited Circle Route" for some reason, and specify the length of each leg.
The plugin also generates gpx files for Rhumb Lines, as well.

Thanks SaltyPaws, great addition to the plugins.

Thomas
__________________
cagney is offline   Reply With Quote
Old 10-09-2012, 11:57   #4
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Route_pi New finished plugin for OpenCPN

I have just updated the plugin to be more friendly when a negative or no waypoint distance is specified. I will have a look, and make the plugin fill out the blanks for the next update, to fix the bug specified above. Please report any other bugs and inconsistencies in this thread as well. Any other features suggested for this plugin.
__________________
SaltyPaws is offline   Reply With Quote
Old 10-09-2012, 12:09   #5
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,291
Re: Route_pi New finished plugin for OpenCPN

Hello,

Quote:
Originally Posted by SaltyPaws View Post
I have just updated the plugin to be more friendly when a negative or no waypoint distance is specified. ......
Give us a link for download binary file for windows.

thank by advance.

Gilletarom
__________________
Gilletarom is offline   Reply With Quote
Old 29-09-2012, 08:55   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,314
Re: Route_pi New Finished Plugin for OpenCPN

Saltypaws

Will this work with the current beta version 3.1.919 under Win7 if I download via git and compile it?

JesperWe advises that running plugins is tricky in compiled betas...
__________________
rgleason is online now   Reply With Quote
Old 29-09-2012, 09:43   #7
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Re: Route_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by rgleason View Post
JesperWe advises that running plugins is tricky in compiled betas...
No, I advise running plugins in Debug builds is tricky, independent of beta or not.

If you do a Release build there should be no problems.
__________________
JesperWe is offline   Reply With Quote
Old 01-10-2012, 22:57   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,314
Re: Route_pi New Finished Plugin for OpenCPN

Thankyou Salty Paws.
__________________
rgleason is online now   Reply With Quote
Old 02-10-2012, 05:39   #9
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,291
Re: Route_pi New Finished Plugin for OpenCPN

Hello SaltyPaws

No link for download the last version ... ?

B.R.

Gilletarom.
__________________
Gilletarom is offline   Reply With Quote
Old 23-10-2012, 11:40   #10
Registered User

Join Date: Jun 2012
Location: on SaltyPaws
Boat: Helia 44
Posts: 66
Re: Route_pi New Finished Plugin for OpenCPN

binaries are linked from plugin page (Thank you Nohal!)

Bug reported by Gilletarom has been fixed in the latest version. Please keep bug reports and suggestions for improvement coming
__________________
SaltyPaws is offline   Reply With Quote
Old 17-11-2012, 09:07   #11
NAV
Registered User

Join Date: Sep 2010
Location: Netherlands
Posts: 424
Re: Route_pi New Finished Plugin for OpenCPN

Updated Dutch language file for the route plugin
Attached Files
File Type: doc route_nl.zip.doc (3.8 KB, 42 views)
__________________
NAV is offline   Reply With Quote
Old 15-08-2013, 05:23   #12
Registered User

Join Date: Jun 2013
Location: Moscow, Russia
Boat: Clerk Chair 1.6ft
Posts: 39
Re: Route_pi New Finished Plugin for OpenCPN

The version 1.0 that is available on the official OpenCPN site, has several bugs.
  1. Limited-circle route is not computed at all (appears to be empty) if the specified latitude limit is not reached. When this happens, the File Save dialog pops up 2 times in sequence, each time producing a GPX file with no waypoints; currently, OpenCPN may crash when trying to view an empty route properties.
  2. Limited-circle route stops respecting the specified waypoint distance once the latitude limit is reached (see attached picture). In my opinion, the middle part between waypoints “Lat_limit1” and “Lat_limit2” should not contain any intermediate points at all, and the final part should use the same waypoint interval as the initial part.
  3. If exporting a limited-circle route is canceled in the File Save dialog, then an error message is mistakenly displayed: “Error in calculation. Please check input!”. Great-circle and rhumb-line modes are not affected by this.
  4. No matter whether the “.gpx” extension is specified upon exporting or not, the created file receives the doubled extension: “.gpx.gpx”. Perhaps, it's a Windows-only issue.
  5. The “Decimal degree” tab has incorrectly spelled word “Lattitude”, which prevents it to be automatically translated by the main template.
  6. The “Limited Circle” tab has incorrectly specified units “NM” for the latitude limit.
Additional suggestions:
  1. If it's not very difficult, enhance itegration with the main program: allow importing of coordinate pairs from clipboard (like the “Paste lat/lon” acts in the waypoint properties dialog), and support exporting the created route to clipboard in KML format, so that external files would not be needed.
  2. Use the same naming convention for waypoints of limited-circle routes as for great-circle and rhumb-line routes — the distance from starting point, not a sequential number. Or, even better, allow the user to choose sequential numbering if he/she plans to adjust the route manually.
  3. If the last route-leg appears to be tiny in respect to others, then either combine it with the penultimate leg, or make them both of equal length. This also applies to the last leg of initial part of limited-circle route.
  4. Make it more clear that the “Calculate” button is only needed to update the “Result” field group, and the user is not required to press it each time before exporting.
  5. Make it more clear that the “° ′ ″” tab accepts decimal fractions for seconds of arc only, and that entering fractions elsewhere leads to discarding the rest, starting from the first unexpected separator. An explicit error message would be better than a silent truncation.
I hope this is an acceptable place to submit bug reports, as I could not find an appropriate section in the official bugtracker.
Attached Thumbnails
Click image for larger version

Name:	limited-circle_waypoints.png
Views:	171
Size:	15.2 KB
ID:	65536  
__________________
SamsonovAnton is offline   Reply With Quote
Old 15-08-2013, 06:29   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,314
Re: Route_pi New Finished Plugin for OpenCPN

SamsonovAnton,
Your reports are so thorough, and thoughtful, might I suggest registering on Flyspray or Tracker OpenCPN::Tracker All Projects: Tasklist and putting your observations and suggestions there, under the appropriate category so they aren't lost?

I am sure the programmers will appreciate the suggestions.
__________________
rgleason is online now   Reply With Quote
Old 15-08-2013, 06:51   #14
Registered User

Join Date: Jun 2013
Location: Moscow, Russia
Boat: Clerk Chair 1.6ft
Posts: 39
Re: Route_pi New Finished Plugin for OpenCPN

Quote:
Originally Posted by rgleason View Post
I suggest registering on Flyspray and putting your observations and suggestions there, under the appropriate category so they aren't lost.
I'm already registered there and posted some reports, but could not find a specific section for plugins created by SaltyPaws — my guess is that not every plugin author is granted his/her own section on the official bugtracker, and thus have to rely on forums or e-mail. As for the “Plugin System” section, as far as I understand, it's meant for general questions on plugin API and for new feature requests that don't fit into core program. If I'm wrong, please, redirect me to a more proper place.
__________________
SamsonovAnton is offline   Reply With Quote
Old 15-08-2013, 19:26   #15
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Route_pi New Finished Plugin for OpenCPN

Anton...
For Salty's plugins you can sure use the trackers associated with the repositories at https://github.com/SaltyPaws/
In flyspray the plugin system tracker would perhaps work as well - anything is better than the forum where it pretty sure gets lost before someone finds time to resolve it.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Reply

Tags
opencpn

Thread Tools
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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 23:24.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.