[Tilecache] An error occurred: couldn't calculate tile index
for layer
Eric Lemoine
Eric.Lemoine at camptocamp.com
Fri Mar 16 17:12:02 EDT 2007
On 3/16/07, Todd Doerr <doerr at usgs.gov> wrote:
>
> Hi,
> I'm trying to get TileCache to work with my wms service.
> When I run this url:
> http://localhost:8080/TileCache/cgi-bin/tilecache.cgi?LAYERS=Antarctic_Coast_30_Million&SERVICE=WMS&REQUEST=GetMap&BBOX=-2959579,-69397,52147.5,2495552&WIDTH=256&HEIGHT=256
> I get
> An error occurred: couldn't calculate tile index for layer
> Antarctic_Coast_30_Million from ([-2959579.0, -69397.0, 52147.5, 2495552.0])
> File "C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\TileCache\WEB-INF\cgi\TileCache\Service.py",
> line 459, in cgiHandler
> format, image = service.dispatchRequest( params, path_info, host )
> File "C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\TileCache\WEB-INF\cgi\TileCache\Service.py",
> line 380, in dispatchRequest
> tile = WMS(self).parse(params, path_info, host)
> File "C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\TileCache\WEB-INF\cgi\TileCache\Service.py",
> line 115, in parse
> return self.getMap(param)
> File "C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\webapps\TileCache\WEB-INF\cgi\TileCache\Service.py",
> line 124, in getMap
> % (layer.name, bbox))
>
>
> My tilecache.cfg is looks like this:
> [cache]
> type=DiskCache
> base=E:\tilecache
>
> [Antarctic_Coast_30_Million]
> type=WMSLayer
> url=http://imsdemo.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Antarctic_Data
> extension=jpeg
> srs=EPSG:3031
> layers=Antarctic_Coast_30_Million
> bbox=-2959579,-2634346,3063874,2495552
>
> My service is in Polar Stereographic projection.
>
> Any idea what's causing this error?
Although not sure I believe specifying resolutions is required in that
case. Can someone confirm?
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Tilecache
mailing list