[Tilecache] KML Superoverlays in TileCache
Christopher Schmidt
crschmidt at metacarta.com
Mon Jul 7 16:28:54 EDT 2008
On Mon, Jul 07, 2008 at 12:27:00PM -0600, Bruce Rindahl wrote:
> 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.
Did you read the "SuperOverlays.txt" documentation that comes with
TileCache? http://tilecache.org/docs/SuperOverlays.html Some of these
questions are answered there.
1. Set up an EPSG:4326 layer.
2. The URLs in the format above are served by TileCache, in this case,
under the URL 'tiles', by mod_python; you do'nt need to create anything
on disk.
-- Chris
> Thanks
> Bruce Rindahl
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
--
Christopher Schmidt
MetaCarta
More information about the Tilecache
mailing list