[Tilecache] self referencing / combine layers from different servers

Paul Ramsey pramsey at refractions.net
Thu Feb 7 18:51:49 EST 2008


Use Mapserver with wms client support to do the combining for you...

You can create a new map file that just has two layers... the  
mapserver wms and the geoserver wms.

Then point your tilecache at this new mapserver combining wms.

P.

On 7-Feb-08, at 1:22 PM, Ziegler Stefan wrote:

> Hi
> I'm having fun with tilecaching but some problems appear: since our  
> aerial photographs are provided by a mapserver wms and the streets  
> by a geoserver wms, i'd like to combine the two in one wms layer.  
> So I tried to define two layers ("ortho" and "streets") in  
> tilecache.cfg. A third layer definition looks like this:
>
> [orthostreets]
> type=WMSLayer
> layers=ortho,streets
> url=http://localhost/cgi-bin/tilecache.cgi
> extension=png
> extent_type=loose
> srs=EPSG:21781
> maxResolution: 273.43481640624987
> bbox=590000.0,213000.0,647000.0,263000.0
>
> But I get an error:
>
> An error occurred: Did not get image data back. (Adjust HIDE_ALL  
> for more detail.)
> File "C:\ms4w\Apache\cgi-bin\TileCache\Service.py", line 525, in  
> cgiHandler
> format, image = service.dispatchRequest( params, path_info,  
> req_method, host )
> File "C:\ms4w\Apache\cgi-bin\TileCache\Service.py", line 443, in  
> dispatchRequest
> return self.renderTile(tile, params.has_key('FORCE'))
> File "C:\ms4w\Apache\cgi-bin\TileCache\Service.py", line 401, in  
> renderTile
> data = layer.render(tile)
> File "C:\ms4w\Apache\cgi-bin\TileCache\Layer.py", line 253, in render
> return self.renderTile(tile)
> File "C:\ms4w\Apache\cgi-bin\TileCache\Layer.py", line 297, in  
> renderTile
> tile.data, response = wms.fetch()
> File "C:\ms4w\Apache\cgi-bin\TileCache\Client.py", line 53, in fetch
> raise Exception("Did not get image data back. (Adjust HIDE_ALL for  
> more detail.)")
>
> Any ideas? I guess that it's not possible to combine to images from  
> different server because that would require some image manipulating  
> abilities? Thanks for any help.
>
> Regards.
> Stefan
>
> Mit freundlichem Gruss
> Stefan Ziegler
> Leiter Aufsicht
>
> Kanton Solothurn
> Bau- und Justizdepartement
> Amt für Geoinformation
> Rötistrasse 4
> 4501 Solothurn
> Telefon 032 627 75 96
> Telefax 032 627 75 98
> stefan.ziegler at bd.so.ch
> http://www.so.ch
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache




More information about the Tilecache mailing list