<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks Chris here's some more info:<br><br>From my tilecache.cfg:<br><br>[basic]<br>type=MapnikLayer<br>layers=basic<br>mapfile=/opt/tile_server/mapnik/osm.xml<br>size=64,64<br>tms_type=google<br>spherical_mercator=true<br>metaTile=true<br><br>a request which I expect to produce the entire world but is part of a 4x4 grid:<br>myserver.com/tilecache.py/1.0.0/basic/0/0/0.png<br><br>Also I am using mod_python so perhaps the performance isn't as a big deal if the xml isn't being read with every request that was a cache miss. My basic concern was how much faster could I make a custom apache module if I were so inclined. Thanks again!<br>-Matt<br><br>--- On <b>Fri, 12/26/08, Christopher Schmidt <i>&lt;crschmidt@metacarta.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Christopher Schmidt
 &lt;crschmidt@metacarta.com&gt;<br>Subject: Re: [Tilecache] Permissions and TileSize<br>To: tilecache@openlayers.org<br>Date: Friday, December 26, 2008, 11:47 AM<br><br><pre>On Fri, Dec 26, 2008 at 08:17:22AM -0800, Matthew Rushton wrote:<br>&gt; I finally figured out the issue, it ended up being a boundary file<br>&gt; that had the wrong permissions, so all is good and appears to be<br>&gt; working. One issue that remains is my tile size. I'm using 64x64 and<br>&gt; this makes zoom level zero not be the entire world. <br><br>This isn't enough information to understand what you're hoping for.<br>Please share your TileCache config and a tile that you're looking for. <br><br>&gt; The only other issue I was curious about was performance with osm<br>&gt; data. I'm worried about the xml file being parsed too frequently.<br>&gt; Does&nbsp; anyone have experience with this? Is my concern valid?<br><br>Since: <br> * Pre-cached tiles never touch the XML file<br>
 * Non-precached tiles will take much longer to render than to use<br>   a C-based XML parser to read the XML file<br><br>My guess is that your concern is a case of premature optimization.<br><br>If you are using mod_python, the config file is read once per apache<br>child startup. If you are using CGI, it is read with every request that<br>needs to generate tiles.<br><br>-- Chris<br><br>&gt; -Matt<br>&gt; <br>&gt; --- On Thu, 12/25/08, Matthew Rushton &lt;mrushton7@yahoo.com&gt; wrote:<br>&gt; From: Matthew Rushton &lt;mrushton7@yahoo.com&gt;<br>&gt; Subject: <br>&gt; To: tilecache@openlayers.org<br>&gt; Date: Thursday, December 25, 2008, 10:09 PM<br>&gt; <br>&gt; I'm trying to set up TileCache and running into a few problems with<br>likely simple solutions. I'm using Mapnik to render the tiles to a disk<br>cache. I previously was using another tile server, so I know mapnik is working<br>great. This is the error I'm getting below. I know it's a problem
 with<br>loading the osm.xml file I just don't know why. I've changed<br>persmissions so it shouldn't be an issue. What sort of problem could this<br>be? What do people generally keep the permissions of this file and others,<br>including tiles, at. Thanks in advance.<br>&gt; -Matt <br>&gt; <br>&gt; An error occurred<br>&gt; <br>&gt; : failed opening file: Bad file descriptor<br>&gt;   File "/var/www/tilecache-2.04/TileCache/Service.py", line 224,<br>in modPythonHandler<br>&gt;     host )<br>&gt;   File "/var/www/tilecache-2.04/TileCache/Service.py", line 208,<br>in dispatchRequest<br>&gt;     return self.renderTile(tile,<br>&gt;  params.has_key('FORCE'))<br>&gt;   File "/var/www/tilecache-2.04/TileCache/Service.py", line 138,<br>in renderTile<br>&gt;     data = layer.render(tile)<br>&gt;   File "/var/www/tilecache-2.04/TileCache/Layer.py", line 437,<br>in render<br>&gt;     return self.renderTile(tile)<br>&gt;   File
 "/var/www/tilecache-2.04/TileCache/Layers/Mapnik.py",<br>line 40, in renderTile<br>&gt;     mapnik.load_map(m,self.mapfile)<br>&gt; <br>&gt; <br>&gt; <br>&gt;       <br>&gt; <br>&gt; <br>&gt;       <br>&gt; _______________________________________________<br>&gt; Tilecache mailing list<br>&gt; Tilecache@openlayers.org<br>&gt; http://openlayers.org/mailman/listinfo/tilecache<br><br><br>-- <br>Christopher Schmidt<br>MetaCarta<br>_______________________________________________<br>Tilecache mailing list<br>Tilecache@openlayers.org<br>http://openlayers.org/mailman/listinfo/tilecache<br></pre></blockquote></td></tr></table><br>