[Tilecache] BBOX of WMS requests

Holger Jaekel holger.jaekel at gaf.de
Tue Mar 4 03:39:41 EST 2008


Hi everyone,

I am currently implementing a WMS-C client for GeoTools and I use your
TileCache-installation on http://labs.metacarta.com/wms-c/Basic.py as a
test system. I found the following problem:

I want to send a request to layer "satellite" in resolution 0.000085831
(level 13), column 8535, row 6534. The TMS request
http://labs.metacarta.com/wms-c/Basic.py/1.0.0/satellite/13/8534/6534.jp
eg gives me the correct result.

For the WMS request, I need the bounding box:
minx = 0.000085831 * 256 * 8534 - 180 = 7.515329024 -> rounded to six
places:  7.515329
miny = 0.000085831 * 256 * 6534 - 90 = 53.569857024 -> rounded to six
places: 53.569857
maxx = 0.000085831 * 256 * 8535 - 180 = 7.53730176  -> rounded to six
places:  7.537302
maxy = 0.000085831 * 256 * 6535 - 90 = 53.59182976  -> rounded to six
places: 53.59183


This would be the WMS request:
http://labs.metacarta.com/wms-c/Basic.py?SERVICE=WMS&LAYERS=satellite&EX
CEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&HEIGHT=256&REQ
UEST=GetMap&WIDTH=256&BBOX=7.515329,53.569857,7.537302,53.59183&STYLES=&
SRS=EPSG:4326&VERSION=1.1.1

This request gives me the error message: "An error occurred: Current x
value 7.515329 is too far from tile corner x 7.514648"

What am I doing wrong with my calculation of the bounding box?

Thank you for your help,
  Holger


---
Holger Jaekel
phone: +49 (89) 121528-75	mailto:holger.jaekel at gaf.de	
fax:   +49 (89) 121528-79	http://www.gaf.de	
GAF AG     Arnulfstr. 197     80634 Muenchen     Germany

Vorstand: Dr. Peter Volk, Aufsichtsratsvorsitzender: Marcello Maranesi

Amtsgericht Muenchen HRB 140 509, Firmensitz: Muenchen


      



More information about the Tilecache mailing list