[Tilecache] KML Superoverlays in TileCache

Bruce Rindahl rindahl at lrcwe.com
Mon Jul 7 14:27:00 EDT 2008


Sorry if this is too obvious but I am stuck..
I have TileCache working perfectly to serve up my images in a web 
application.  Now I want to be able to serve it up via KML as a 
superoverlay.
For example my imagery is setup as a WMS via mapserver. In my 
tilecache.cfg file this is accessed via:

[naip]
type=WMSLayer
url=http://localhost/cgi-bin/mapserv.exe?map=h:/mapfiles/naip.map
extension=png
layers=naip
srs=EPSG:26913
bbox=139000,4094000,763000,4550000
maxResolution=2048
levels=12

A request such as:

http://localhost/tilecache/tilecache.py?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=naip&SRS=EPSG:26913&BBOX=515832,4388912,532216,4405296&width=256&height=256

works perfectly via TileCache. My map file is setup to reproject to 
EPSG:4236 for KML.  My question is now what?  The example file 
overlay.kml included with TileCache is:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
  <Folder>
  <NetworkLink>
    <Link>
      
<href>http://tile.openaerialmap.org/tiles/1.0.0/openaerialmap/0/0/0.kml</href>
    </Link>
  </NetworkLink>
  <NetworkLink>
    <Link>
      
<href>http://tile.openaerialmap.org/tiles/1.0.0/openaerialmap/0/1/0.kml</href>
    </Link>
  </NetworkLink>
  </Folder>
</kml>


Do I need to create a starting directory sturcture like the one given in 
the example file?  What do I need to do to the tilecache.cfg file?  Do I 
need to alter the Apache http.conf file to include another tilecache 
directory?  Any help would be appreciated.

Thanks
Bruce Rindahl



More information about the Tilecache mailing list