ranathunga / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

doc.kml not root/index/main document in KMZ file #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Comments: 
When packing a KMZ file, the order of files is important. First KML document 
seems to be treated as main/index/root document, instead of taking doc.kml.

Comments: [ManoM] This is not so much a bug as the way it works.

Relevant Application(s): 
Google Earth 4 on Windows, others not tested.

Steps to Reproduce: 
"zip myfile.kmz doc.kml foo.kml bar.kml" --> myfile.kmz shows up fine
"zip myfile.kmz doc.kml foo.kml bar.kml" --> myfile.kmz not OK.

Workarounds: 
Manually pack KML files, doc.kml/index/main/root document first.

Reported By: mip

Original issue reported on code.google.com by api.roman.public@gmail.com on 14 Aug 2008 at 10:45

GoogleCodeExporter commented 9 years ago
doc.kml is the convention to be used for the root KML document but clearly GE 
loads 
the first KML kml document found whether it is at the root level or 
sub-directory.

This fact has recently been added to Google Earth's documentation on KMZ:

"(When Google Earth opens a KMZ file, it scans the file, looking for the first 
.kml 
file in this list. It ignores all subsequent .kml files..."

http://code.google.com/apis/kml/documentation/kmzarchives.html

Original comment by gjmath...@gmail.com on 7 Nov 2009 at 7:27