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>          &lt;Icon&gt;<br>            &lt;href&gt;%(ty)d.%(tileformat)s&lt;/href&gt;<br>
          &lt;/Icon&gt;<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">&lt;<a href="mailto:rush@winkey.org">rush@winkey.org</a>&gt;</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>
&lt;href&gt;2558.png&lt;/href&gt;<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>
&gt;<br>
&gt; I am following the instructions for creating one KMZ file that are<br>
&gt; posted here:<br>
&gt;<br>
&gt; <a href="http://trac.osgeo.org/gdal/wiki/UserDocs/Gdal2Tiles" target="_blank">http://trac.osgeo.org/gdal/wiki/UserDocs/Gdal2Tiles</a><br>
&gt;<br>
&gt; I am using gdal2tiles under the &quot;gdal&quot; package 1.8.  I have having<br>
&gt; success creating superoverlays and the related folder structure.  I am<br>
&gt; able to read the created doc.kml in Google Earth.  However, when I<br>
&gt; attempt to zip up the folder structure using 7zip and rename the file<br>
&gt; to test.kmz, the file doesn&#39;t read properly in Google Earth (GE).  GE<br>
&gt; zooms into the correct location but all I see is a red &quot;x&quot;.<br>
&gt; Compressing the superoverlay structure seems to break the link between<br>
&gt; the doc.kml file and the png files.  As an example, I have created a<br>
&gt; tiny (21 KB)  example and placed it here:<br>
&gt;<br>
&gt; <a href="http://www.edc.uri.edu/Personal/roland/test.kmz" target="_blank">http://www.edc.uri.edu/Personal/roland/test.kmz</a><br>
&gt;<br>
&gt; I am curious if someone had some insight.<br>
&gt;<br>
&gt; All the Best,<br>
&gt; Roland<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; gdal-dev mailing list<br>
&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt; <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>