<div class="gmail_quote">On 28 September 2010 18:00, <span dir="ltr"><<a href="mailto:tilecache-request@lists.osgeo.org" target="_blank">tilecache-request@lists.osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Tilecache mailing list submissions to<br>
<a href="mailto:tilecache@lists.osgeo.org" target="_blank">tilecache@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.osgeo.org/mailman/listinfo/tilecache" target="_blank">http://lists.osgeo.org/mailman/listinfo/tilecache</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:tilecache-request@lists.osgeo.org" target="_blank">tilecache-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:tilecache-owner@lists.osgeo.org" target="_blank">tilecache-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Tilecache digest..."<br>
<br>Today's Topics:<br>
<br>
1. Labels getting cut at tile boundaries<br>
(David Alda Fernandez de Lezea)<br>
<br><br>---------- Forwarded message ----------<br>From: "David Alda Fernandez de Lezea" <<a href="mailto:dalda@ikt.es" target="_blank">dalda@ikt.es</a>><br>To: <<a href="mailto:tilecache@openlayers.org" target="_blank">tilecache@openlayers.org</a>><br>
Date: Tue, 28 Sep 2010 09:11:01 +0200<br>Subject: [Tilecache] Labels getting cut at tile boundaries<br>Hi list,<br>
<br>
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:<br>
<br>
C:\ms4w\Apache\cgi-bin\tilecache-2.10>tilecache_seed.py toponimia_50000 0 3<br>
###### (0, 0, 0), (2, 2, 0)<br>
Cache miss: 460000.0,4690000.0,535000.0,4765000.0, Tile: x: 0, y: 0, z: 0, time:<br>
0.609999895096<br>
00 (000000, 000000) = (460000.0000 4690000.0000 535000.0000 4765000.0000) [0.610<br>
0s : 1.639/s] 1/1<br>
Traceback (most recent call last):<br>
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\tilecache_seed.py", line 9, in <mo<br>
dule><br>
TileCache.Client.main()<br>
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py", line 162, in<br>
main<br>
seed(svc, layer, map(int, args[1:3]), bboxlist , padding=options.padding, fo<br>
rce = options.force, reverse = options.reverse)<br>
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py", line 117, in<br>
seed<br>
svc.renderTile(tile,force=force)<br>
File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Service.py", line 140, i<br>
n renderTile<br>
else: raise Exception("Zero length data returned from layer.")<br>
Exception: Zero length data returned from layer.<br>
<br>
C:\ms4w\Apache\cgi-bin\tilecache-2.10><br>
<br>
My layer configuration at TileCache<br>
<br>
[toponimia_50000]<br>
type=WMSLayer<br>
layers=toponimia_50000<br>
srs=EPSG:23030<br>
maxResolution=292.96875<br>
bbox=460000, 4690000, 610000, 4820000<br>
url=<a href="http://192.168.1.38/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/wms/wms.map&TRANSPARENT=trueextent_type=loose" target="_blank">http://192.168.1.38/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/wms/wms.map&TRANSPARENT=true<br>
extent_type=loose</a><br>
extension=gif<br>
metaTile=true<br>
metaBuffer=256<br>
<br>
Do I have to configure something else??<br></blockquote><div><br></div><div><br></div><div>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'.</div>
<div><br></div><div>Hope this helps.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks in advance.<br>
<br>
Un saludo,<br>
<br>
··················································································<br>
<br>
David Alda Fernández de Lezea<br>
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad<br>
<br>
IKT<br>
Granja Modelo s/n · 01192 · Arkaute (Araba)<br>
<br>
··················································································<br>
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90<br>
··················································································<br>
email: <a href="mailto:dalda@ikt.es" target="_blank">dalda@ikt.es</a> web: <a href="http://www.ikt.es" target="_blank">www.ikt.es</a><br>
··················································································<br>
<br>
<br>_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@lists.osgeo.org" target="_blank">Tilecache@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/tilecache" target="_blank">http://lists.osgeo.org/mailman/listinfo/tilecache</a><br>
<br></blockquote></div><br>