[Tilecache] Re: Tilecache Digest, Vol 44, Issue 9

Diego Alberto Arias Prado diegoalberto at ariasprado.name
Tue Sep 28 20:41:15 EDT 2010


On 28 September 2010 18:00, <tilecache-request at lists.osgeo.org> wrote:

> Send Tilecache mailing list submissions to
>        tilecache at lists.osgeo.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.osgeo.org/mailman/listinfo/tilecache
> or, via email, send a message with subject or body 'help' to
>        tilecache-request at lists.osgeo.org
>
> You can reach the person managing the list at
>        tilecache-owner at lists.osgeo.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tilecache digest..."
>
> Today's Topics:
>
>   1. Labels getting cut at tile boundaries
>      (David Alda Fernandez de Lezea)
>
>
> ---------- Forwarded message ----------
> From: "David Alda Fernandez de Lezea" <dalda at ikt.es>
> To: <tilecache at openlayers.org>
> 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:
>  0.609999895096
> 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
> dule>
>    TileCache.Client.main()
>  File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Client.py", line
> 162, in
>  main
>    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
>  seed
>    svc.renderTile(tile,force=force)
>  File "C:\ms4w\Apache\cgi-bin\tilecache-2.10\TileCache\Service.py", line
> 140, i
> n renderTile
>    else: raise Exception("Zero length data returned from layer.")
> Exception: Zero length data returned from layer.
>
> C:\ms4w\Apache\cgi-bin\tilecache-2.10>
>
> My layer configuration at TileCache
>
> [toponimia_50000]
> type=WMSLayer
> layers=toponimia_50000
> srs=EPSG:23030
> maxResolution=292.96875
> bbox=460000, 4690000, 610000, 4820000
> url=
> http://192.168.1.38/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/wms/wms.map&TRANSPARENT=true
> extent_type=loose<http://192.168.1.38/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/wms/wms.map&TRANSPARENT=trueextent_type=loose>
> extension=gif
> metaTile=true
> metaBuffer=256
>
> Do I have to configure something else??
>


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'.

Hope this helps.


>
> Thanks in advance.
>
> Un saludo,
>
>
> ··················································································
>
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
>
> ··················································································
> Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
>
> ··················································································
> email: dalda at ikt.es                                web: www.ikt.es
>
> ··················································································
>
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/tilecache
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20100929/75f76333/attachment.html


More information about the Tilecache mailing list