<!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Hi,</p>
<p>I'm generating tiles using WMS - Services running on mapserver.</p>
<p>I want to use the metaTile=true option to get better results with labelling, but I get this error:</p>
<p> File "/usr/bin/tilecache_seed.py", line 5, in ?<br /> pkg_resources.run_script('TileCache==2.10', 'tilecache_seed.py')<br /> File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 448, in run_script<br /> self.require(requires)[0].run_script(script_name, ns)<br /> File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 1166, in run_script<br /> execfile(script_filename, namespace, namespace)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/EGG-INFO/scripts/tilecache_seed.py", line 9, in ?<br /> TileCache.Client.main()<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py", line 177, in main<br /> seed(svc, layer, map(int, args[1:3]), bboxlist , padding=options.padding, force = options.force, reverse = options.reverse)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py", line 132, in seed<br /> svc.renderTile(tile,force=force)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Service.py", line 138, in renderTile<br /> data = layer.render(tile, force=force)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Layer.py", line 435, in render<br /> image = self.renderMetaTile(metatile, tile)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Layer.py", line 407, in renderMetaTile<br /> subimage = image.crop((minx, miny, maxx, maxy))<br /> File "/usr/lib64/python2.4/site-packages/PIL/Image.py", line 673, in crop<br /> self.load()<br /> File "/usr/lib64/python2.4/site-packages/PIL/ImageFile.py", line 155, in load<br /> self.load_prepare()<br /> File "/usr/lib64/python2.4/site-packages/PIL/PngImagePlugin.py", line 337, in load_prepare<br /> raise IOError("cannot read interlaced PNG files")<br />IOError: cannot read interlaced PNG files</p>
<p><br />although my outputformat is defined as follows:</p>
<p> OUTPUTFORMAT<br /> NAME "pnga"<br /> MIMETYPE "image/pnga"<br /> DRIVER "AGG/PNG"<br /> EXTENSION "png"<br /> IMAGEMODE "RGBA"<br /> TRANSPARENT TRUE<br /> FORMATOPTION "INTERLACE=OFF"<br /> END</p>
<p>Any ideas?</p>
<p> </p>
<p>When trying metatiles on JPEGs I get this error:</p>
<p><br />Traceback (most recent call last):<br /> File "/usr/bin/tilecache_seed.py", line 5, in ?<br /> pkg_resources.run_script('TileCache==2.10', 'tilecache_seed.py')<br /> File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 448, in run_script<br /> self.require(requires)[0].run_script(script_name, ns)<br /> File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 1166, in run_script<br /> execfile(script_filename, namespace, namespace)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/EGG-INFO/scripts/tilecache_seed.py", line 9, in ?<br /> TileCache.Client.main()<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py", line 177, in main<br /> seed(svc, layer, map(int, args[1:3]), bboxlist , padding=options.padding, force = options.force, reverse = options.reverse)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py", line 132, in seed<br /> svc.renderTile(tile,force=force)<br /> File "/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Service.py", line 140, in renderTile<br /> else: raise Exception("Zero length data returned from layer.")<br />Exception: Zero length data returned from layer.</p>
<p>Is there a problem with my PIL library ?</p>
<p>Kind regards,</p>
<p>Jeff</p>