Open GoogleCodeExporter opened 9 years ago
Sorry, minor correction: the 'cycle' isn't 'gczip', its 'cpgz' If you google
'cpgz cycle' you'll see a explanation of the phenomenon.
Original comment by ajpatter...@gmail.com
on 7 Jul 2011 at 6:34
I played around with your unit test data -- there's no project using the zip
test unit data in 1.2.0 BTW (though its not hard to make one) -- and I was able
to duplicate the problem by unzipping testdata/kmz/zermatt-photo.kmz and
running CreateFromKmlFilepath() on the doc.kml. The result is a KMZ that looks
valid -- you can rename it to .ZIP and see its contents -- but Google Earth
will fail to find the image inside it. It also still fails to open properly
when renamed to .zip on the Mac (cpgz cycle alluded to in earlier comment).
It's worth noting that for whatever reason, Google Earth is capable of finding
the root level KML in the produced KMZ; it seems to just be unable to find
things in sub-folders within the KMZ.
Original comment by ajpatter...@gmail.com
on 8 Jul 2011 at 2:32
One last note: I tried flattening the contents and that worked. The problem
seems to be entirely with sub-folders. I've attached another KMZ, also produced
with KmzFile::CreateFromKmlFilepath(), but this one works. The difference is
all the images referenced are in the root folder of the ZIP file.
Original comment by ajpatter...@gmail.com
on 8 Jul 2011 at 2:42
Attachments:
Original issue reported on code.google.com by
ajpatter...@gmail.com
on 7 Jul 2011 at 6:29Attachments: