GPS (x,y) coordinates to kml coordinates

3,623 views
Skip to first unread message

gnowak

unread,
Mar 7, 2008, 6:46:58 AM3/7/08
to KML Developer Support - Getting Started with KML
Hello I am trying to convert x,y-coordinates from a GPS-server to KML
coordinates. I have tried to put them into a kml file without luck.
One of the coordinates look like this:

(x; y) = (570561,760838813 ; 6225911,22043819)

This position should be in Denmark near Århus (Aarhus).

I have searched the forum for conversion options without luck. Hints
anybody??

Thanks.

/gnowak

gnowak

unread,
Mar 7, 2008, 7:06:59 AM3/7/08
to KML Developer Support - Getting Started with KML
I should mention Google Earth postions of the specific coordinate:

Latitude: 56°10'22.50"N
Longitude: 10° 8'10.66"E

In kml with coordinates

<Placemark>
<name>test</name>
<LookAt>
<longitude>10.13788447010817</longitude>
<latitude>56.17218613140453</latitude>
<altitude>0</altitude>
<range>529.2834253627124</range>
<tilt>-3.483934583108621e-013</tilt>
<heading>-0.0007173288126681</heading>
<altitudeMode>relativeToGround</altitudeMode>
</LookAt>
<styleUrl>#msn_ylw-pushpin</styleUrl>
<Point>
<coordinates>10.13629444444445,56.17291666666667,0</coordinates>
</Point>
</Placemark>

Thanks

/gnowak

Jonathan van Tuijl

unread,
Mar 7, 2008, 11:13:44 AM3/7/08
to KML Developer Support - Getting Started with KML
http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system

Look at external links for conversion. This one looks particularly
useful:
http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html

Some other external links give you the math, which isn't so bad, but
this is a converter that you simply use. It converts to/from decimal
degrees which is what KML uses. :-) Note that I didn't test it and
that I'm not familiar with this projection.

Jonathan

gnowak

unread,
Mar 8, 2008, 2:18:37 AM3/8/08
to KML Developer Support - Getting Started with KML
Thanks, Jonathan! The hint for me was UTM, at first glance my
conversion didn't work as expected, but I will look into it more
thouroughly on Monday.

gnowak

unread,
Mar 10, 2008, 6:01:41 AM3/10/08
to KML Developer Support - Getting Started with KML
Last time I messed up with google earths, search function. When I put
the coordinates into a kml file, everything works. Your link:
http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html works
very well.

I will try to use the math from here: http://www.kralidis.ca/gis/geospat/geoweb/paper/

Thanks again.

... is there any way I can get notifikation in groups.google.com on
only the topic I am writing on??

gnowak

unread,
Mar 10, 2008, 6:03:30 AM3/10/08
to KML Developer Support - Getting Started with KML
Reply all
Reply to author
Forward
0 new messages