Thanks Brian,<br><br>I have reviewed OSGeo4W\bin\gdal2tiles.py and specifically line 1597 containing the href tag to the png file:<br><br> <Icon><br> <href>%(ty)d.%(tileformat)s</href><br>
</Icon><br><br>I was curious if someone had any idea on how to modify this href tag to include the relative path as Brian suggests below. I see that the appropriate path is already included in the name tag if the .kml is changed to .png. Any ideas on the best approach would be appreciated. Also, is this relative path something that should be added to the general release to support kmz compression?<br>
<br>Thanks,<br>Roland<br><br><br><br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 5:35 PM, brian <span dir="ltr"><<a href="mailto:rush@winkey.org">rush@winkey.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Roland<br>
<br>
<br>
the problem is in /12/1211/2558.kml line 26<br>
<br>
<href>2558.png</href><br>
<br>
this should be a relative path from the root of the zipfile not from<br>
2558.kml<br>
<br>
Brian<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Wed, 2011-02-16 at 15:14 -0500, Roland Duhaime wrote:<br>
><br>
> I am following the instructions for creating one KMZ file that are<br>
> posted here:<br>
><br>
> <a href="http://trac.osgeo.org/gdal/wiki/UserDocs/Gdal2Tiles" target="_blank">http://trac.osgeo.org/gdal/wiki/UserDocs/Gdal2Tiles</a><br>
><br>
> I am using gdal2tiles under the "gdal" package 1.8. I have having<br>
> success creating superoverlays and the related folder structure. I am<br>
> able to read the created doc.kml in Google Earth. However, when I<br>
> attempt to zip up the folder structure using 7zip and rename the file<br>
> to test.kmz, the file doesn't read properly in Google Earth (GE). GE<br>
> zooms into the correct location but all I see is a red "x".<br>
> Compressing the superoverlay structure seems to break the link between<br>
> the doc.kml file and the png files. As an example, I have created a<br>
> tiny (21 KB) example and placed it here:<br>
><br>
> <a href="http://www.edc.uri.edu/Personal/roland/test.kmz" target="_blank">http://www.edc.uri.edu/Personal/roland/test.kmz</a><br>
><br>
> I am curious if someone had some insight.<br>
><br>
> All the Best,<br>
> Roland<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
</blockquote></div><br>