jeff, if I try your mimetype MIMETYPE "image/pnga"... I have the same bug... change it for MIMETYPE "image/png" ... <div>regards<br><div><br></div><div> </div><div><div><br></div><br><div class="gmail_quote">
2010/1/20 Jeff Konnen <span dir="ltr"><<a href="mailto:jk@ubithere.lu" target="_blank">jk@ubithere.lu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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><br>_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
<br></blockquote></div><br></div>
</div>