<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><crschmidt@metacarta.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Christopher Schmidt
<crschmidt@metacarta.com><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>> I finally figured out the issue, it ended up being a boundary file<br>> that had the wrong permissions, so all is good and appears to be<br>> working. One issue that remains is my tile size. I'm using 64x64 and<br>> 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>> The only other issue I was curious about was performance with osm<br>> data. I'm worried about the xml file being parsed too frequently.<br>> Does 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>> -Matt<br>> <br>> --- On Thu, 12/25/08, Matthew Rushton <mrushton7@yahoo.com> wrote:<br>> From: Matthew Rushton <mrushton7@yahoo.com><br>> Subject: <br>> To: tilecache@openlayers.org<br>> Date: Thursday, December 25, 2008, 10:09 PM<br>> <br>> 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>> -Matt <br>> <br>> An error occurred<br>> <br>> : failed opening file: Bad file descriptor<br>> File "/var/www/tilecache-2.04/TileCache/Service.py", line 224,<br>in modPythonHandler<br>> host )<br>> File "/var/www/tilecache-2.04/TileCache/Service.py", line 208,<br>in dispatchRequest<br>> return self.renderTile(tile,<br>> params.has_key('FORCE'))<br>> File "/var/www/tilecache-2.04/TileCache/Service.py", line 138,<br>in renderTile<br>> data = layer.render(tile)<br>> File "/var/www/tilecache-2.04/TileCache/Layer.py", line 437,<br>in render<br>> return self.renderTile(tile)<br>> File
"/var/www/tilecache-2.04/TileCache/Layers/Mapnik.py",<br>line 40, in renderTile<br>> mapnik.load_map(m,self.mapfile)<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> Tilecache mailing list<br>> Tilecache@openlayers.org<br>> 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>