[OpenLayers-Users] Tilecache tile index clarification

joanne cook j.cook at oxfordarch.co.uk
Tue Jan 9 09:53:12 EST 2007


Hi Christopher,
 
Thanks for getting back to me. The section from tilecache.cfg is:
 
[Raster250K]
type=WMSLayer
#layers=Raster250K
#mapfile=C:/xampp/htdocs/OS_Coverage/OANSiteswms.map&
URL=http://localhost/cgi-bin/mapserv.exe?map=C:/xampp/htdocs/OS_Coverage/OANSiteswms.map&
srs=EPSG:27700
bbox=-3.57463,53.486899999999999,-2.0,55.2941
 
I have tried to use entirely EPSG 27700 (the bbox then should be 0, 0, 700000, 13000000- which is the full extent of the national grid), but get the same error message.
 
Jo
 
-------------------------------------------
Joanne Cook BSc MLitt AIFA MBCS
Information Systems Coordinator
Oxford Archaeology North
-------------------------------------------

________________________________

From: Christopher Schmidt [mailto:crschmidt at metacarta.com]
Sent: Tue 09/01/2007 14:28
To: joanne cook
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] Tilecache tile index clarification



On Tue, Jan 09, 2007 at 02:10:52PM -0000, joanne cook wrote:
> Hi All,
> 
> I am slowly making progress getting tilecache 1.3 working on windows XP with apache 2.3. I have got to the stage where I can see the example URLs, and I'm trying to set up my own mapserver wms example. I have a valid wms server running, serving one layer, using projection EPSG:27700. If I use the URL
> http://localhost/tilecache-1.3/tilecache.py/1.0.0/Raster250K/0/0/0.png
> I can see one tile showing me the whole of my raster layer.
> 
> However if I try and call it using a variant on:
> http://localhost/tilecache-1.3/tilecache.py?LAYERS=Raster250K&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:27700&BBOX=-3.57463,53.4869,-2,55.2941&SIZE=256,256
> Then I get the following error message:
> An error occurred: couldn't calculate tile index for layer Raster250K from ([-3.57463, 53.486899999999999, -2.0, 55.2941])
>   File "C:\xampp\htdocs\tilecache-1.3\TileCache\Service.py", line 398, in modPythonHandler
>     host )
>
>   File "C:\xampp\htdocs\tilecache-1.3\TileCache\Service.py", line 377, in dispatchRequest
>     tile = WMS(self).parse(params, path_info, host)
>
>   File "C:\xampp\htdocs\tilecache-1.3\TileCache\Service.py", line 118, in parse
>     return self.getMap(param)
>
>   File "C:\xampp\htdocs\tilecache-1.3\TileCache\Service.py", line 127, in getMap
>     % (layer.name, bbox)
>
> I am confused as to the projection that my bounding box coordinates should be in, and have tried them in EPSG 27700 and 4326. The above are the lat and long coordinates taken straight from the GetCapabilities xml file. I'm only assuming that's the problem though- my apache error log shows plenty of activity for the first URL above, and nothing for the second.

Can you paste the configuration section of your tilecache.cfg that
pertains to this layer in an email?

Regards,
--
Christopher Schmidt
MetaCarta







This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com



More information about the Users mailing list