<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Damiano,<div><br></div><div>My first guess would be that Mapnik is attempting to reproject the data, not TileCache.</div><div><br></div><div>Make sure that the proj.4 string literal you are using to specify the projection of your layers and the map in the Mapnik XML mapfile are exactly the same otherwise Mapnik will attempt to reproject internally.</div><div><br></div><div>It is easy to miss specifying the projection for a layer in the XML and Mapnik will assume the proj literal of&nbsp;<span class="Apple-style-span" style="color: rgb(196, 26, 22); font-family: Monaco; font-size: 10px; ">'+proj=latlong +datum=WGS84' </span>for all layers unless specified.</div><div><br></div><div>Also, I noticed that you are using the SRS= &lt;proj literal> syntax in your tilecache config. &nbsp;You can probably drop that because it won't affect the Mapnik TileCache Layer. &nbsp;If you truly want to reproject your data when using a Mapnik TileCache Layer then you would do:</div><div><br></div><div>projection = &lt;proj literal></div><div><br></div><div>Dane</div><div><br></div><div><div><div>On Nov 28, 2008, at 10:50 AM, Damiano Morosi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>I was using the following configuration for tilecache:<br><br>--<br><br>[cache]<br>base = /tmp/tilecache<br>type = Disk<br><br>[basic]<br>type=Mapnik<br>mapfile=/var/www/mapfile.xml<br>srs = EPSG:4326<br><br>#---------------------#<br> # Impostazione regione#<br>#---------------------#<br><br>bbox = 9.7,39.7,15.3,45.3<br>size=600, 600<br>resolutions = 0.0093333330,0.0046666665,0.0023333332,0.0011666666,0.0005833333,0.0002916667,0.0001458333,0.0000729167,0.0000364583,0.0000182292,0.0000091146<br> <br>--<br><br>Now, I've projected all the shapes with ogr2ogr using with the following:<br><br>+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs<br><br>that should be the projection used by Google.<br> So I changed the tilecache config:<br><br>--<br><br>[cache]<br>base = /tmp/tilecache-proj<br>type = Disk<br><br>[basic]<br>type=Mapnik<br>mapfile=/var/www/mapfile-proj.xml<br>srs = +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs<br> <br>#---------------------#<br># Impostazione regione#<br>#---------------------#<br>bbox = 1079799,4936842,1703799,5560842<br>size=600, 600<br>resolutions = 1040.0000000000,520.0000000000,260.0000000000,130.0000000000,65.0000000000,32.5000000000,16.2500000000,8.1250000000,4.0625000000,2.0312500000,1.0156250000<br> <br>--<br><br>and, of course, the mapnik mapfile. Now the tilecache_seed.py is taking about 0.9 seconds for generating a single tile, while before this modification the time required was about 0.02 s. All the shapes are indexed with shapeindex on 64 levels. It's possible that a change in the projection cause such a dramatical performances decrease? Or maybe tilecache is trying to "reproject" something?<br> <br>Thank you all,<br><br>Damiano<br> _______________________________________________<br>Tilecache mailing list<br><a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>http://openlayers.org/mailman/listinfo/tilecache<br></blockquote></div><br></div></body></html>