[Tilecache] Seeding Error: x value too far from tile corner x

Christopher Schmidt crschmidt at metacarta.com
Wed Jul 25 21:06:33 EDT 2007


On Wed, Jul 25, 2007 at 05:18:47PM -0700, Dara Dowd wrote:
> 
> Hello,
> 
> I am able to get Tilecache working with OpenLayers but I'm having trouble
> with tilecache_seed.py.
> 
> 
> When trying to run 
> 
>  python tilecache_seed.py "http://x.x.x.x/tilecache/tilecache.py?"
> CityRegion 0 1  "135.857890,33.720600,136.990800,35.254501"
> 
> with the following setup in tilecache.cfg
> 
> [CityRegion]
> type=MapServerLayer
> mapfile=/websites/test/dara/include/maps/testprojection.map
> layers=City_Region
> extension=jpeg
> bbox=135.857890,33.720600,136.990800,35.254501
> resolutions=0.0031747816880420914, 0.0015873908440210457,
> 0.0007936954220105229, 0.00031747816880420905, 0.00015873908440210453,
> 0.00007936954220105226, 0.000031747816880420904, 0.000015873908440210452
> debug=on
> 
> I get the following error:
> 
> Traceback (most recent call last):
>   File "tilecache_seed.py", line 9, in ?
>     TileCache.Client.main()
>   File "/usr/local/apache/htdocs/tilecache/TileCache/Client.py", line 112,
> in main
>     seed(base, layer, map(int, sys.argv[3:5]), map(float,
> sys.argv[5].split(",")))
>   File "/usr/local/apache/htdocs/tilecache/TileCache/Client.py", line 86, in
> seed
>     topright   = layer.getClosestCell(z, bbox[2:4])
>   File "/usr/local/apache/htdocs/tilecache/TileCache/Layer.py", line 170, in
> getClosestCell
>     return self.getCell((minx, miny, maxx, maxy), False)
>   File "/usr/local/apache/htdocs/tilecache/TileCache/Layer.py", line 159, in
> getCell
>     raise TileCacheException("Current x value %f is too far from tile corner
> x %f" % (minx, tilex))
> TileCache.Service.TileCacheException: Current x value 136.990800 is too far
> from tile corner x 136.670634
> 
> I am using tilecache-RC-1.9.
> 
> I'd be grateful if someone could point out where I'm going wrong.

You're not. I am. My refactoring broke tilecache_seed, it seems. I'll
poke at it sometime before the end of  this weekend and get it fixed.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list