KML won't display in Google Earth

403 views
Skip to first unread message

Rudy Vogel

unread,
Oct 13, 2013, 6:38:52 AM10/13/13
to kml-suppor...@googlegroups.com

Although I tried to use an existent valid KML file to make my own one, I can't get it display in GE. Here is the code (only one coordinate shown here, 214084 of them in the original file):


<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.2"> <Document> <name>New</name> <description><![CDATA[]]></description> <Style id="style1"> <LineStyle> <color>7F0000FF</color> <width>5</width> </LineStyle> </Style> <Placemark> <name>Line1</name> <styleUrl>#style1</styleUrl> <LineString> <tessellate>1</tessellate> <coordinates> 2.550044453,49.01044277,0.000000 (...) </coordinates> </LineString> </Placemark> </Document> </kml>
 

Note that the path exists and seems to be well read by GE, but it just doesn't display on the map. Strange behaviour...

How could I make it work?

Thanks.

Regards

GTrek

unread,
Oct 14, 2013, 4:54:55 AM10/14/13
to kml-suppor...@googlegroups.com
Hi Rudy,

It won't display anything, you need more than one point to show a line and a balloon to show a placemark. Other than it zooming to CDG airport I can't see anything wrong.

John
www.gtrek.co.uk

HDSS.NET

unread,
Oct 14, 2013, 11:56:27 PM10/14/13
to kml-suppor...@googlegroups.com
I had a similar problem on my windows 2003 server with IIS6.
I added the MIME type to the server for .kml and .kmz files and all started working well

Right Click on the main IIS Server and choose properties then click MIME Types..
Add these two entries
.kml    application/vnd.google-earth.kml+xml
.kmz   application/vnd.google-earth.kmz

Also, If its going to be a static kml file you may also try turning off the server caching while you develop your program.

Hope this helps.

Rudy Vogel

unread,
Oct 15, 2013, 6:09:20 AM10/15/13
to kml-suppor...@googlegroups.com
Hi,

Thanks for your help, but I've actually found the answer: a linestring would only accept 65 536 coordinates max. As I had 210000+ of them, I had to create multiple linestrings.

Regards
Reply all
Reply to author
Forward
0 new messages