Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » Distance - geodesic - Vincenty - very accurate
Re: Distance - geodesic - Vincenty - very accurate [message #26020 is a reply to message #26007] |
Fri, 26 March 2010 11:09 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
I found where the glitch was. It had nothing to do with Ubuntu 10.04b (although I will drop that until the 10.04 release for other problems).
I ran some tests with the Linux version and found a problem.
The copy and paste from a web site for a location in deg,min,sec was not parsed correctly.
In another Java app, Location.jar, I spent a considerable amount of time parsing the different ways the location in lat,lon format is specified on the web.
http://www.nlneilson.com/nww.html
For the Distance app, Java or C++, unless the latlon is in decimal degrees, the lat and lon should be comma delimited, this eliminated many problems with odd ball formats.
The format that was a problem in the C++ Linux version is also a problem in the Win .exe version, I just did not catch that. I will go back into the parsing code and correct that.
The Java version worked but there were two function there:
.replaceAll("\\s+", " "); // This replaces several spaces with a single space
.trim(); // this removes leading and trailing spaces
I did not know the corresponding functions in C++, my error as usual.
[Updated on: Fri, 26 March 2010 11:27] Report message to a moderator
|
|
|
|
|
Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Sat, 20 March 2010 08:23
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Sat, 20 March 2010 21:31
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: Didier on Sat, 20 March 2010 22:29
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Sun, 21 March 2010 07:57
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Sun, 21 March 2010 18:11
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Mon, 22 March 2010 22:24
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Mon, 22 March 2010 23:11
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Tue, 23 March 2010 11:57
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Fri, 26 March 2010 12:30
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
By: koldo on Fri, 26 March 2010 20:07
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
|
|
Re: Distance - geodesic - Vincenty - very accurate
|
Goto Forum:
Current Time: Sat Apr 27 13:11:31 CEST 2024
Total time taken to generate the page: 0.07829 seconds
|