[Tilecache] Wrong BBOX with metatile?

Bartłomiej Burkot pomiarowiec10 at poczta.onet.pl
Thu Mar 22 09:49:19 EDT 2012


Hello

It seems that tilecache produces wrong bbox to WMS when using 
metatile=true, or am I doing something wrong?
I wondered why the labels on the administrative boundaries are cutted 
http://mmapa.pl though I used metatile.
I produced tile request to tilecache and an image produced from WMS 
respond and attached it to this mail. You will see that the area of 
tilecache is not in the middle of WMS image.
Is it known to you? Am I configuring tilecache correctly?

I configured tilecache layer:

[pl_gran_adm]
type=WMS
url=http://mywmsservice....
extension=png
layers=podzial_adm
srs=EPSG:900913
bbox=-20037508.34, -20037508.34,20037508.34, 20037508.34
spherical_mercator=true
tms_type=google
metatile=true
metaSize=3,3
metaBuffer=10

This request
http://mmapa.pl/cgi-bin/tilecache.cgi?LAYERS=pl_gran_adm&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=2504688.5425,6887893.491875,3130860.678125,7514065.6275&WIDTH=256&HEIGHT=256
triggers request to WMS:
http://myserver.../cgi-bin/polska?transparent=true&layers=podzial_adm&styles=&service=WMS&width=788&format=image%2Fpng&request=GetMap&height=788&srs=EPSG%3A900913&version=1.1.1&bbox=2480228.69255%2C6237261.50615%2C4407664.79745%2C8164697.61105

Problem is in wrong bbox parameter sended to WMS. It is
2480228.69255,6237261.50615,4407664.79745,8164697.61105 and should be:
x_min = 2504688,5425 - 626172,135625-10 = 1878506,406875
x_max = 3130860,678125 + 626172,135625+10 = 3757042,81375

Am I right?
I will thankfull of your feedback.

Bartlomiej





I'm using tilecache 2.11 installed from apt-get on Ubuntu 11.10 server 
(32-bit).

  tilecache_seed --version
tilecache_seed $Id: Client.py 406 2010-10-15 11:00:18Z crschmidt



-------------- next part --------------
A non-text attachment was scrubbed...
Name: tilecache.cgi.png
Type: image/png
Size: 2305 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20120322/9f8762dc/tilecache.cgi.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wms.png
Type: image/png
Size: 6064 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/tilecache/attachments/20120322/9f8762dc/wms.png


More information about the Tilecache mailing list