<div class="gmail_quote">On 28 September 2010 18:00,  <span dir="ltr">&lt;<a href="mailto:tilecache-request@lists.osgeo.org" target="_blank">tilecache-request@lists.osgeo.org</a>&gt;</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 &#39;help&#39; 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 &quot;Re: Contents of Tilecache digest...&quot;<br>
<br>Today&#39;s Topics:<br>
<br>
   1. Labels getting cut at tile boundaries<br>
      (David Alda Fernandez de Lezea)<br>
<br><br>---------- Forwarded message ----------<br>From: &quot;David Alda Fernandez de Lezea&quot; &lt;<a href="mailto:dalda@ikt.es" target="_blank">dalda@ikt.es</a>&gt;<br>To: &lt;<a href="mailto:tilecache@openlayers.org" target="_blank">tilecache@openlayers.org</a>&gt;<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&#39;m facing a little problem with some labels from a layer that I&#39;ve generated with tilecache. They&#39;re splitted in the tile boundaries. I&#39;ve been reading some solutions. I&#39;ve succesfully installed Python Imaging Library, and I&#39;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&gt;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 &quot;C:\ms4w\Apache\cgi-bin\tilecache-2.10\tilecache_seed.py&quot;, line 9, in &lt;mo<br>
dule&gt;<br>
    TileCache.Client.main()<br>
  File &quot;C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py&quot;, 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 &quot;C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py&quot;, line 117, in<br>
 seed<br>
    svc.renderTile(tile,force=force)<br>
  File &quot;C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Service.py&quot;, line 140, i<br>
n renderTile<br>
    else: raise Exception(&quot;Zero length data returned from layer.&quot;)<br>
Exception: Zero length data returned from layer.<br>
<br>
C:\ms4w\Apache\cgi-bin\tilecache-2.10&gt;<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&amp;TRANSPARENT=trueextent_type=loose" target="_blank">http://192.168.1.38/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/wms/wms.map&amp;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 &#39;levels&#39; (the number of zoom levels). Both &#39;maxResolution&#39; and &#39;levels&#39; are needed to calculate the set of map resolutions. Another option is giving directly the set of map resolutions by using the parameter &#39;resolutions&#39;.</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>