Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » Distance - geodesic - Vincenty - very accurate
Re: Distance - geodesic - Vincenty - very accurate [message #26022 is a reply to message #26021] Fri, 26 March 2010 13:08 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
TrimBoth(); I will try that.

One thing I noticed that seemed odd in upp:
The character for the degree symbol ° as int = -80
I thought that should be 176

I am handling it in upp with:
//            if (ic>122 || ch=='°' || ch==''' || ch=='"') ic = 32;
            if (ic>122 || ic==-80 || ic==39 || ic==34) ic = 32;

That could have something to do with the problem.
Sometimes for ° ic = -62 AND ch = -62 rather than ch = '°'

With my code the ° should be replaced with a space.
To take care of some strange stuff I have:
if (ic < 0) continue;
I could change that to:
if (ic < 0) ic = 32;
and then a few lines of code in C++ to check/remove the consecutive space/s similar to .replaceAll("\\s+", " "); in Java.

[Updated on: Fri, 26 March 2010 14:09]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Google Translator
Next Topic: How to load dll
Goto Forum:
  


Current Time: Sat Apr 27 13:52:21 CEST 2024

Total time taken to generate the page: 0.90929 seconds