C
Cralis
Guys,
I have written a small application which accepts GPS coordinated from
a device, and then I build up a GoogleEarth KML file. That's all
done...
And it works for me in Australia.
But a user says it's not working for him, and he's in Turkey, I think.
I got his file, and this is what it SHOULD look like:
(Lat/Long/Alt)
24.988607,44.982925,341.7
24.988594,44.982937,341.4
24.988594,44.982941,341.4
24.988600,44.982941,341.4
24.988602,44.982944,341.5
But this is what it actually looks like after he has parsed it on his
macgine:
2,498861E+07,4,498292E+07,3417
2,498859E+07,4,498294E+07,3414
2,498859E+07,4,498294E+07,3414
2,49886E+07,4,498294E+07,3414
2,49886E+07,4,498294E+07,3415
And fair enough, GoogleEarth doesn't like it.
I am making use of Doubles and Floats to store data... but now I am
thinking that's the issue.
When I output the coordinates to the XML file, I am doing this:
coordinatesElement.InnerText += string.Format("{0},{1},{2}\r\n",
ls.Latitude, ls.Longitude, ls.Altitude);
(All those field types are Doubles)
Hope someone can help!
I have written a small application which accepts GPS coordinated from
a device, and then I build up a GoogleEarth KML file. That's all
done...
And it works for me in Australia.
But a user says it's not working for him, and he's in Turkey, I think.
I got his file, and this is what it SHOULD look like:
(Lat/Long/Alt)
24.988607,44.982925,341.7
24.988594,44.982937,341.4
24.988594,44.982941,341.4
24.988600,44.982941,341.4
24.988602,44.982944,341.5
But this is what it actually looks like after he has parsed it on his
macgine:
2,498861E+07,4,498292E+07,3417
2,498859E+07,4,498294E+07,3414
2,498859E+07,4,498294E+07,3414
2,49886E+07,4,498294E+07,3414
2,49886E+07,4,498294E+07,3415
And fair enough, GoogleEarth doesn't like it.
I am making use of Doubles and Floats to store data... but now I am
thinking that's the issue.
When I output the coordinates to the XML file, I am doing this:
coordinatesElement.InnerText += string.Format("{0},{1},{2}\r\n",
ls.Latitude, ls.Longitude, ls.Altitude);
(All those field types are Doubles)
Hope someone can help!