Incorrect UTM to dms

View: New views
2 Messages — Rating Filter:   Alert me  

Incorrect UTM to dms

by Erlend Thune :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My local orienteering club have put out markers in the terrain as a
trial project and given their coordinates in UTM zone 34. My GPS
device only handle degrees, minutes and seconds.

Therefore, I am trying to use gpsbabel to convert from UTM coordinates
zone 34 in the northern hemisphere to degrees, minutes, seconds. I
realized the conversion put me 50 meters of the target, so I must be
doing something wrong. Can anyone see where I go wrong? My input file
"in.csv" looks like this:

utm,shortname
34 N 420196 7732994, Post 42

I use the following command line:

gpsbabel -i unicsv -f in.csv -o unicsv -F out.csv

The content of "out.csv" looks like this:

No,Latitude,Longitude,Name
1,69.693538,18.939189,"Post 42"

However, if I use the tool
http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html
recommended on http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system,
I get the correct coordinates, which are:

69.69308946671327
18.93924949897593

I have verfied this in the terrain!

Any help would be greatly appreciated!
--
Erlend

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Re: Incorrect UTM to dms

by Olaf Klein-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Erlend,

......
>m, I get the correct coordinates, which are:
>
> 69.69308946671327
> 18.93924949897593
>
> I have verfied this in the terrain!
>
> Any help would be greatly appreciated!

sorry for the delayed answer! :-(

Some seconds ago I've applied new code for the conversion from UTM to
latitude/longitude.

And here are the new results:

> ./gpsbabel -i unicsv -f erlend.csv -o unicsv -F -

No,Latitude,Longitude,Name
1,69.693089,18.939249,"Post 42"

Kind regards
O.K.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
LightInTheBox - Buy quality products at wholesale price