ranathunga / kml-samples

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

relative paths in KMZ file #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Comments: 
references from files within KMZ to other files in KMZ seem to be always 
relative to the root of the doc.kml/main/root file, instead of relative to the 
path of the referencing file.

Comments: [ManoM] This is not a bug, but the way KMZ's work. If you would like 
it to change, create a feature request.

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

Steps to Reproduce: 
see description.

Workarounds: 
Use flat directory layout in KMZ (don't alter path names, as this erroneous 
behavior will hopefully change).

Reported By: mip

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

GoogleCodeExporter commented 9 years ago
This is a bug, according to the KML Reference;

<href> 
A URL (either an HTTP address or a local file specification). When the parent 
of 
<Link> is a NetworkLink, <href> is a KML file. When the parent of <Link> is a 
Model, 
<href> is a COLLADA file. When the parent of <Link> is an Overlay, <href> is an 
image. Relative URLs can be used in this tag and ____are evaluated relative to 
the 
enclosing KML file_____.

Emphasis mine.

Original comment by davidahi...@gmail.com on 2 Feb 2009 at 6:05

GoogleCodeExporter commented 9 years ago
I agree this is a bug, and the documentation is clearly misleading or unclear 
at best.

Original comment by aug....@gmail.com on 2 Oct 2014 at 3:15