[Tilecache] tilecache problem with a projection in meters

olivier.terral olivier.terral at geomatys.fr
Tue Mar 6 11:07:37 EST 2007


Hi,

I test Tilecache but I've a problem.

Crschimdt said me maxResolution='auto' creates problem so I create my 
layers and map with maxResolution=47524   ( It's a world mercator 
projection in meters) and a maxExtent

but I've still another problem:

Here, definition of layer in tilecache.cfg:

[world]
type=WMSLayer
url=http://localhost/wms
extension=gif
srs=EPSG:54004                  
bbox=-19977777,-8938601,20037508,19813476
maxResolution=47524


Error in browser:

An error occurred: couldn't calculate tile index for layer world from ([-7811609.5890739998, 4724576.1282660002, 4354557.8218529997, 16890743.539191999])
  File "C:\www\mdweb\1.5\tilecache-1.4\TileCache\Service.py", line 459, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, host )
  File "C:\www\mdweb\1.5\tilecache-1.4\TileCache\Service.py", line 380, in dispatchRequest
    tile = WMS(self).parse(params, path_info, host)
  File "C:\www\mdweb\1.5\tilecache-1.4\TileCache\Service.py", line 115, in parse
    return self.getMap(param)
  File "C:\www\mdweb\1.5\tilecache-1.4\TileCache\Service.py", line 124, in getMap
    % (layer.name, bbox))


error in Apache:

[Tue Mar 06 16:55:47 2007] [error] [client 127.0.0.1] 
C:\\www\\mdweb\\1.5\\tilecache-1.4\\TileCache\\Layer.py:147: 
UserWarning: y (1.000000) - y0 (1.123047) = 0.123047\r
[Tue Mar 06 16:55:47 2007] [error] [client 127.0.0.1]   warn("y (%f) - 
y0 (%f) = %f" % (y, y0, abs(y - y0)))\r


for information wms works good, it's a mapserver wms and the layer is 
displayed correctly
 but with tilecache it bugs



More information about the Tilecache mailing list