noob problem with loading kml

47 views
Skip to first unread message

firehawk777

unread,
Jul 29, 2011, 8:17:12 AM7/29/11
to kml-support-g...@googlegroups.com
I am new to kml and I am having problems getting my first kml to parse to Google Earth
Could someone please point out what I am doing wrong?

here is my kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>KML events</name>
<open>1</open><folder>
<Placemark>
<name>Some event</name>
<description>Some event</description>
<Point>
<coordinates>-28.5844882108613,153.19902089843754</coordinates>
</Point>
<LookAt>
<longitude>153.19902089843754</longitude>
<latitude>-28.5844882108613</latitude>
<altitude>0</altitude>
<heading>-148.4122922628044</heading>
<tilt>40.5575073395506</tilt>
<range>500.6566641072245</range>
</LookAt>
</Placemark>
<Placemark>
<name>Some other event</name>
<description>Some other event</description>
<Point>
<coordinates>-28.325797,153.39309300000002</coordinates>
</Point>
<LookAt>
<longitude>153.39309300000002</longitude>
<latitude>-28.325797</latitude>
<altitude>0</altitude>
<heading>-148.4122922628044</heading>
<tilt>40.5575073395506</tilt>
<range>500.6566641072245</range>
</LookAt>
</Placemark>
<Placemark>
<name>Yet another event</name>
<description>Yet another event</description>
<Point>
<coordinates>-28.468657751997416,153.2072606445313</coordinates>
</Point>
<LookAt>
<longitude>153.2072606445313</longitude>
<latitude>-28.468657751997416</latitude>
<altitude>0</altitude>
<heading>-148.4122922628044</heading>
<tilt>40.5575073395506</tilt>
<range>500.6566641072245</range>
</LookAt></Placemark>
</folder>
</Document>
</kml>

firehawk777

unread,
Jul 29, 2011, 9:16:18 PM7/29/11
to kml-support-g...@googlegroups.com
Please someone I need some pointers on this issue.
I have tried to to use both the network and parse methods and still can't get this kml to load.
What am I doing wrong?

Nymor

unread,
Jul 31, 2011, 7:25:39 AM7/31/11
to KML Developer Support - Getting Started with KML
Hi,

Using the kml validator at
http://feedvalidator.org/
there were a couple of problems with the above kml

<folder></folder>
should be
<Folder></Folder>

and it could be that you've transposed your values in the point
coordinates as they should be longitude,latitude,(altitude) and
latitudes are between -90 & 90. Swap those around and change the
Folder thing and it then validates.

Regards
Nymor
Reply all
Reply to author
Forward
0 new messages