When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tilecache digest..."
1. Labels getting cut at tile boundaries
(David Alda Fernandez de Lezea)
---------- Forwarded message ---------- From: "David Alda Fernandez de Lezea" <[hidden email]> To: <[hidden email]>
Date: Tue, 28 Sep 2010 09:11:01 +0200 Subject: [Tilecache] Labels getting cut at tile boundaries Hi list,
I'm facing a little problem with some labels from a layer that I've generated with tilecache. They're splitted in the tile boundaries. I've been reading some solutions. I've succesfully installed Python Imaging Library, and I've also set metaTile=true and metaBuffer=256, but when I execute tilecache_seed.py over this layer I get an error:
C:\ms4w\Apache\cgi-bin\tilecache-2.10>tilecache_seed.py toponimia_50000 0 3
###### (0, 0, 0), (2, 2, 0)
Cache miss: 460000.0,4690000.0,535000.0,4765000.0, Tile: x: 0, y: 0, z: 0, time:
00 (000000, 000000) = (460000.0000 4690000.0000 535000.0000 4765000.0000) [0.610
0s : 1.639/s] 1/1
Traceback (most recent call last):
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\tilecache_seed.py", line 9, in <mo
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py", line 162, in
seed(svc, layer, map(int, args[1:3]), bboxlist , padding=options.padding, fo
rce = options.force, reverse = options.reverse)
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py", line 117, in
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Service.py", line 140, i
else: raise Exception("Zero length data returned from layer.")
Exception: Zero length data returned from layer.
In the piece of TileCache config file you gave, I miss the parameter 'levels' (the number of zoom levels). Both 'maxResolution' and 'levels' are needed to calculate the set of map resolutions. Another option is giving directly the set of map resolutions by using the parameter 'resolutions'.