[gdal-dev] gdal2tiles output packed as kmz doesn't load in Google Earth

Jeffrey Warren jeff at unterbahn.com
Mon May 17 14:53:21 EDT 2010


Hmm, i see:

/Users/warren/Downloads/1202.png - HTTP 404(Not Found) The server has not
found anything matching the URI.
/Users/12/1037/2404.kml - Could not open file
/Users/12/1037/2405.kml - Could not open file

So it's a relative path problem, not reading from the zip root. The xml is
below - hmm... what's the proper way to refer to zip-local root? Do these
files load for anyone else's version of Google Earth?

Thanks a lot!

<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
  <Document>
    <Name>may-8-chandeleur-flight-epsg-4326.tif</Name>
    <Description></Description>
    <Style>
      <ListStyle id="hideChildren">
        <listItemType>checkHideChildren</listItemType>
      </ListStyle>
    </Style>
    <NetworkLink>
      <name>11/518/1202.png</name>
      <Region>
        <Lod>
          <minLodPixels>128</minLodPixels>
          <maxLodPixels>-1</maxLodPixels>
        </Lod>
        <LatLonAltBox>
          <north>29.99300228455108</north>
          <south>29.84064389983444</south>
          <east>-88.76953125000000</east>
          <west>-88.94531250000000</west>
        </LatLonAltBox>
      </Region>
      <Link>
        <href>11/518/1202.kml</href>
        <viewRefreshMode>onRegion</viewRefreshMode>
        <viewFormat/>
      </Link>
    </NetworkLink>
  </Document>
</kml>


On Mon, May 17, 2010 at 12:59 PM, Kyle Shannon <ksshannon at gmail.com> wrote:

> You can turn on kml error handling in the Tools->Options under the
> "General" tab.  My first guess would be a path issue, but I am not certain.
>
> kss
>
> # ============================
> Kyle Shannon
> Physical Science Technician
> RMRS Fire Sciences Lab
> Fire, Fuels & Smoke - RWU 4405
> 5775 Highway 10 W.
> Missoula, MT 59808
> (406)829-6954
> kshannon at fs.fed.us
> # ============================
>
>
> On Mon, May 17, 2010 at 9:08 AM, Jeffrey Warren <jeff at unterbahn.com>wrote:
>
>> Hi, I'm probably missing something obvious, but I tried packing an output
>> directory from gdal2tiles -k (generating the doc.kml) and while the kml
>> loads, and all the sub-kmls load (i.e. 11/1401/2322.kml etc.) when I
>> compress them into a zip and rename kmz, the images don't load.
>>
>> Google Earth doesn't seem to have an error console but it does actually
>> follow the doc.kml network links, and finds the sub-kmls. It just doesn't
>> find the images.
>>
>> Am I missing something? the generated doc.kml uses relative paths and I've
>> read the docs...
>>
>> anyways the files are here, along with the link to the root doc.kml. Could
>> anyone take a look and help me out here?
>>
>> maps.grassrootsmapping.org/chandeleur-may8-plane.kmz
>> maps.grassrootsmapping.org/chandeleur-may8-plane/doc.kml
>>
>> maps.grassrootsmapping.org/may-9-chandeleur-balloon.kmz
>> maps.grassrootsmapping.org/may-9-chandeleur-balloon/doc.kml
>>
>> For reference, these two tilesets also have absolute path .kml files here,
>> which load properly in GE:
>>
>> maps.grassrootsmapping.org/chandeleur-may8-plane.kml
>> maps.grassrootsmapping.org/may-9-chandeleur-balloon.kml
>>
>> Thanks for any tips/suggestions!
>>
>> Best,
>> Jeff
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100517/8c335a8b/attachment.html


More information about the gdal-dev mailing list