[Tilecache] Problems with PNG24 when metaTile=true
Jeff Konnen
jk at ubithere.lu
Wed Jan 20 11:27:24 EST 2010
Hi,
I'm generating tiles using WMS - Services running on mapserver.
I want to use the metaTile=true option to get better results with
labelling, but I get this error:
File "/usr/bin/tilecache_seed.py", line
5, in ?
pkg_resources.run_script('TileCache==2.10', 'tilecache_seed.py')
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 448, in run_script
self.require(requires)[0].run_script(script_name,
ns)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 1166, in run_script
execfile(script_filename, namespace, namespace)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/EGG-INFO/scripts/tilecache_seed.py",
line 9, in ?
TileCache.Client.main()
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py",
line 177, in main
seed(svc, layer, map(int, args[1:3]), bboxlist ,
padding=options.padding, force = options.force, reverse = options.reverse)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py",
line 132, in seed
svc.renderTile(tile,force=force)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Service.py",
line 138, in renderTile
data = layer.render(tile, force=force)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Layer.py",
line 435, in render
image = self.renderMetaTile(metatile, tile)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Layer.py",
line 407, in renderMetaTile
subimage = image.crop((minx, miny, maxx,
maxy))
File "/usr/lib64/python2.4/site-packages/PIL/Image.py", line 673,
in crop
self.load()
File
"/usr/lib64/python2.4/site-packages/PIL/ImageFile.py", line 155, in load
self.load_prepare()
File
"/usr/lib64/python2.4/site-packages/PIL/PngImagePlugin.py", line 337, in
load_prepare
raise IOError("cannot read interlaced PNG files")
IOError:
cannot read interlaced PNG files
although my outputformat is defined as
follows:
OUTPUTFORMAT
NAME "pnga"
MIMETYPE "image/pnga"
DRIVER
"AGG/PNG"
EXTENSION "png"
IMAGEMODE "RGBA"
TRANSPARENT TRUE
FORMATOPTION "INTERLACE=OFF"
END
Any ideas?
When trying metatiles on
JPEGs I get this error:
Traceback (most recent call last):
File
"/usr/bin/tilecache_seed.py", line 5, in ?
pkg_resources.run_script('TileCache==2.10', 'tilecache_seed.py')
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 448, in run_script
self.require(requires)[0].run_script(script_name,
ns)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 1166, in run_script
execfile(script_filename, namespace, namespace)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/EGG-INFO/scripts/tilecache_seed.py",
line 9, in ?
TileCache.Client.main()
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py",
line 177, in main
seed(svc, layer, map(int, args[1:3]), bboxlist ,
padding=options.padding, force = options.force, reverse = options.reverse)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py",
line 132, in seed
svc.renderTile(tile,force=force)
File
"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Service.py",
line 140, in renderTile
else: raise Exception("Zero length data returned
from layer.")
Exception: Zero length data returned from layer.
Is there a
problem with my PIL library ?
Kind regards,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20100120/b6024caf/attachment.html
More information about the Tilecache
mailing list