<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all!
<div><br class="webkit-block-placeholder"></div><div>First, I'm new to this list and would like to thank all Tilecache developers and contributors for their work!</div><div><br class="webkit-block-placeholder"></div><div>Okay, let's come to the actual problem..</div><div>I'm trying to use the MetaCarta "satellite" layer as a background in my application (I hope this is allowed).</div><div>I could include it directly into OpenLayers, but I don't want to put extra load on the MetaCarta server and am thus trying to use Tilecache as a proxy there which, once all images I need are downloaded, acts as the only server.</div><div><br class="webkit-block-placeholder"></div><div>My Tilecache configuration now looks like this:</div><div><div><br class="webkit-block-placeholder"></div><div>[MetaCarta_satellite]</div><div>type=WMSLayer</div><div>url=<a href="http://labs.metacarta.com/wms-c/Basic.py">http://labs.metacarta.com/wms-c/Basic.py</a></div><div>layers=satellite</div><div>extension=png</div><div>metaTile=false</div><div>debug=false</div><div><br class="webkit-block-placeholder"></div><div>This configuration works in OpenLayers, but using Tilecache I get the following error instead of an image:</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">An error occurred: cannot identify image file</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 452, in wsgiHandler</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">    format, image = service.dispatchRequest( fields, path_info, req_method, host )</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 405, in dispatchRequest</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">    return self.renderTile(tile, params.has_key('FORCE'))</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line 367, in renderTile</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">    data = layer.render(tile)</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  File "/usr/lib/python2.4/site-packages/TileCache/Layer.py", line 248, in render</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">    image = self.renderMetaTile(metatile, tile)</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  File "/usr/lib/python2.4/site-packages/TileCache/Layer.py", line 211, in renderMetaTile</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">    image = Image.open( StringIO.StringIO(data) )</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">  File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1745, in open</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">    raise IOError("cannot identify image file")</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 13px;">I hope anyone has an idea.. I couldn't find anything like this in the web..</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 13px;">Thank you in advance!</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br class="webkit-block-placeholder"></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 13px;">Pascal</span></font></div> <br class="webkit-block-placeholder"></div></div></body></html>