... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RouteConverter 1.28 distance calculation
#1
Hi RouteConverter, I cannot download the release 1.28 source code because Sourceforge only has the 1.26 source, and the svn trunk link (in the FAQs) is broken. I only wanted to check the algorithm used for the new distance calculation feature, I find the figure differs from that supplied by my GPS. Could you please advise how to get the source code for 1.28 or, alternatively, what formula you used to calculate distance.
Many thanks
Bill
Reply
#2
(14.07.2009, 11:43)wtold Wrote: Hi RouteConverter, I cannot download the release 1.28 source code because Sourceforge only has the 1.26 source, and the svn trunk link (in the FAQs) is broken. I only wanted to check the algorithm used for the new distance calculation feature, I find the figure differs from that supplied by my GPS. Could you please advise how to get the source code for 1.28 or, alternatively, what formula you used to calculate distance.

Hi Bill,

the svn trunk link should point via svn:externals to the latest release. I didn't find time yet for 1.28 so there's a 1.27 available at http://www.routeconverter.de/svn/RouteCo...tags/1.27/
--
Christian
Reply
#3
(14.07.2009, 14:29)routeconverter Wrote: Hi Bill,

the svn trunk link should point via svn:externals to the latest release. I didn't find time yet for 1.28 so there's a 1.27 available at http://www.routeconverter.de/svn/RouteCo...tags/1.27/

Thank you RouteConverter, I finally succeeded in creating an Eclipse project out of your svn repository which compiles ok but gives the following run time errors (although the GUI opens up, but without the browser window, and I am able to load a track):
I guess the main problem is a lack of 64-bit jdic for my Ubuntu 9.04 running on a dual amd64 (is there really such a thing as "linux/amd64/jdic.so"?), but I am not sure about the other errors.
Any clues?
PS I haven't found out yet why the distance calculations differ from my GPS, that is next on my plate!
Many thanks
Bill

Logging to /tmp/RouteConverter.log
*** Jtrace: {Native loader
{init
New binary?:null
*** Jtrace: }Native loader
java.security.PrivilegedActionException: java.io.IOException: Native resourse [bin/linux/amd64/jdic.so] was not found in JAR.
at java.security.AccessController.doPrivileged(Native Method)
at org.jdesktop.jdic.init.NativeExtractor.loadLibruary(NativeExtractor.java:172)
at org.jdesktop.jdic.init.JdicManager.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
at slash.navigation.converter.gui.mapview.JdicMapView.createWebBrowser(JdicMapView.java:181)
at slash.navigation.converter.gui.mapview.JdicMapView.initialize(JdicMapView.java:212)
at slash.navigation.converter.gui.mapview.JdicMapView.<init>(JdicMapView.java:115)
at slash.navigation.converter.gui.RouteConverter$3.run(RouteConverter.java:189)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Native resourse [bin/linux/amd64/jdic.so] was not found in JAR.
at org.jdesktop.jdic.init.NativeExtractor.extractBinary(NativeExtractor.java:141)
at org.jdesktop.jdic.init.NativeExtractor$1.run(NativeExtractor.java:174)
... 9 more
isDefaultBrowserMozilla
*** Jtrace: found a free port: 43149
1247691302992 loadWebPage thread Thread[MapViewOpener,6,main]
Exception in thread "EventThread" java.lang.UnsatisfiedLinkError: org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath()Ljava/lang/String;
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath(Native Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.getBrowserPath(Unknown Source)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.getEmbedBinaryName(Unknown Source)
at org.jdesktop.jdic.browser.NativeEventThread.run(Unknown Source)
*** Jtrace:
MyFocusListener: focusGained

/bin/chmod: changing permissions of `/usr/bin/gpsbabel': Operation not permitted
XML ReaderTonguearse error at 1: not well-formed (invalid token)
*** Jtrace:
MyFocusListener: focusLost
Reply
#4
(15.07.2009, 22:08)wtold Wrote: I guess the main problem is a lack of 64-bit jdic for my Ubuntu 9.04 running on a dual amd64 (is there really such a thing as "linux/amd64/jdic.so"?)

No, the JDIC project is dead. I couldn't compile it on my Ubuntu 9.04 32-bit.

(15.07.2009, 22:08)wtold Wrote: , but I am not sure about the other errors.

/bin/chmod: changing permissions of `/usr/bin/gpsbabel': Operation not permitted

is to make the life of Mac OS X users easier as that version contains an embedded gpsbabel.

(15.07.2009, 22:08)wtold Wrote: Any clues?
PS I haven't found out yet why the distance calculations differ from my GPS, that is next on my plate!

Search for the class Bearing.
--
Christian
Reply
#5
(15.07.2009, 22:08)wtold Wrote: Any clues?
PS I haven't found out yet why the distance calculations differ from my GPS, that is next on my plate!

Search for the class Bearing.
[/quote]

Thanks Routeconverter, it looks as though you are using a different Earth radius from the often quoted 6371.1km. Changing the value gives me a result nearly the same as my GPS. There is also the issue of elevation difference between the two points, but that is more a philosophical issue about the definition of "distance", I don't think either my GPS receiver or your formula take that into account.

As a separate topic, I would like to suggest that you add the facility to add or subtract a fixed value (via a spinner maybe) to allow bulk adjustments to be made to the elevations. GPS's are not very good at guessing the elevation and often the elevation provided differs consistently in the .gpx file by a fixed amount. I now fix this outside of RC but perhaps it would be more convenient if done via RC.
Many thanks for your help and for a great application.
Bill
Reply
#6
(16.07.2009, 23:45)wtold Wrote: As a separate topic, I would like to suggest that you add the facility to add or subtract a fixed value (via a spinner maybe) to allow bulk adjustments to be made to the elevations.

Hi Bill,

you mean a value that is added/subtracted from all elevation data? Just for display purposes? Or like the options in the context menu?
--
Christian
Reply
#7
(17.07.2009, 10:13)routeconverter Wrote:
(16.07.2009, 23:45)wtold Wrote: As a separate topic, I would like to suggest that you add the facility to add or subtract a fixed value (via a spinner maybe) to allow bulk adjustments to be made to the elevations.

Hi Bill,

you mean a value that is added/subtracted from all elevation data? Just for display purposes? Or like the options in the context menu?

I meant a fixed value to be added/subtracted, but not just for display, ideally it should be possible to save the changes so that the new values become the basis for any subsequent display or conversion.
Bill
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)