|
-
Jun 21st, 2011, 05:10 PM
#18
New Member
Re: GPS Class that maps Lat/Long to UTM Coordinates (WGS84 and others)
Hello Jenner,
(I hope you are still paying attention to this thread)
I am trying to use the class you built in VB in my project. However, I am having problems with coordinates in the southern hemisphere.
I have created a C# test class based on the Excel spreadsheet from http://www.uwgb.edu/dutchs/UsefulDat...ertUTMNoOZ.HTM . I have put the file on GitHub - it is available on https://github.com/jlundstocholm/Coo...Transformation .
All coordinates in the Northern hemissphere are calculated correctly, but all coordinates in South fail. As an example, the coordiates
Northern: 3000000
Eastern: 430000
Hemisphere: South
Zone: 28
Is supposed (from the spreadsheet as well at the test page on http://www.rcn.montana.edu/resources...&n=3000000&h=S ) to be
Code:
Longitude: 15° 42' 22,616" West
Latitude: 27° 8' 45.503" South
But your class yields the result
Code:
Longitude: {16° 23' 16,314" West
Latitude: 63° 7' 21,179" South
I have looked thru the code and as far as I can see, it pretty much mimics the formulas in the spreadsheet.
Do you have an idea of what I am doing wrong?
And also: have you thought about putting an Open Source license to your class like Apache, BSD or similar? It would make it easier to reuse in projects.
Thank you,
:-)
/Jesper Lund Stocholm
Copenhagen, Denmark
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|