[Tilecache] problems getting tilecache.cfg and Openlayers WMS
parameters in sync
Christopher Schmidt
crschmidt at metacarta.com
Fri Jul 20 10:03:28 EDT 2007
On Fri, Jul 20, 2007 at 02:47:27PM +0100, David Herbert wrote:
(As a reminder, please respond to the list, and not just to me.)
> Have changed my cfg file to:
>
> [bathymetry_and_coastline]
> type=WMSLayer
> url=http://10.48.1.76:8080/geoserver/wms
> layers=sggis:bathy_poly,sggis:coast_polygon
> extension=png
> bbox=-82000,7800,80000,116000
> maxResolution=200.370370
> srs=EPSG:2007056
>
> Now it makes up a tile request as e.g:
You didn't change your OpenLayers 'layers' parameter to match the
TileCache layer name. You should have OpenLayers talking to
'bathymetry_and_coastline', not to
'sggis:bathy_poly,sggis:coast_polygon'.
(The rest of this message has been left for posterity.)
-- Chris
> http://10.48.1.76/tilecache/tilecache.cgi?LAYERS=sggis%3Abathy_poly%2Csggis%3Acoast_polygon&STYLES=sggis_bathymetry_polygon%2Csggis_coastline&FORMAT=image%2Fpng&TRANSPARENT=off&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2007056&BBOX=20589.62944%2C59094.81472%2C71884.44416%2C110389.62944&WIDTH=256&HEIGHT=256
>
> and now gives me the error:
>
> An error occurred: 'sggis:bathy_poly,sggis:coast_polygon'
> File "C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\tilecache\TileCache\Service.py", line 489,
> in cgiHandler
> format, image = service.dispatchRequest( params, path_info,
> req_method, host )
> File "C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\tilecache\TileCache\Service.py", line 397,
> in dispatchRequest
> tile = WMS(self).parse(params, path_info, host)
> File "C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\tilecache\TileCache\Service.py", line 122,
> in parse
> return self.getMap(param)
> File "C:\Program Files\Apache Software
> Foundation\Apache2.2\htdocs\tilecache\TileCache\Service.py", line 126,
> in getMap
> layer = self.service.layers[param["layers"]]
>
> which I've seen people reporting before on the list. I have tried
> another overlay which only contains one WMS layer (called it "surface"
> and contains sggis:surface Geoserver layer). Any ideas?
--
Christopher Schmidt
MetaCarta
More information about the Tilecache
mailing list