<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Arnaud,<div><br></div><div>Try setting the full path to your shapefile in the XML.</div><div><br></div><div>For example:</div><div><br></div><div><blockquote type="cite">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;Parameter name="file">/home/arnaud/data/tuto/TM_WORLD_BORDERS_SIMPL-0.2&lt;/Parameter></blockquote><div><br></div><div><br></div>Also, make sure you are pointing to the shapefile name, not the folder it is inclosed in.</div><div><br></div><div>Lastly, if those things don't help try setting the projection property in your config:</div><div><br></div><div><div>&nbsp;[world]</div><div>type=Mapnik</div><div>mapfile=/var/www/html/RetD/mapnik/mapfile.xml</div><div>layers=world</div><div>projection=+proj=latlong +datum=WGS84</div><div><br></div><div><br></div><div>Dane</div><div><br></div></div><div><br><div><div>On Apr 29, 2009, at 4:53 AM, Arnaud Vandecasteele wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<br><br clear="all">I'm trying to use MapNik and tileCache with my own data.<br>The facti is i can generate a png file with MapNik but when I try to do the same thing with TileCache I've only got the background I defined in My XML Mapfile (&lt;Map srs="+proj=latlong +datum=WGS84" bgcolor="#4682b4">)<br> <br>My project is very simple and I don't know what is wrong. Could someaone help to know where i made a mistake.<br><br>Here is :<br><br>************* my python MapNik file : <br>import mapnik<br>mapfile="./mapfile.xml"<br> m = mapnik.Map(1400, 600)<br>mapnik.load_map(m, mapfile)<br>bbox = mapnik.Envelope(mapnik.Coord(-180.0, -75.0), mapnik.Coord(180.0, 90.0))<br>m.zoom_to_box(bbox) <br>mapnik.render_to_file(m, './tuto02/world_populationTOTO.png', 'png')<br> <br><br>************* my xml file : <br><br>&lt;?xml version="1.0" encoding="utf-8"?><br>&lt;!DOCTYPE Map><br>&lt;Map srs="+proj=latlong +datum=WGS84" bgcolor="#4682b4"><br> &nbsp;&nbsp;&nbsp; &lt;Style name="My_Style"><br>&nbsp;&nbsp;&nbsp; &lt;Rule>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;PolygonSymbolizer><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;CssParameter name="fill">#c7e9b4&lt;/CssParameter><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/PolygonSymbolizer><br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;LineSymbolizer><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;CssParameter name="stroke">black&lt;/CssParameter><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;CssParameter name="stroke-width">.1&lt;/CssParameter><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/LineSymbolizer><br> &nbsp;&nbsp;&nbsp; &lt;/Rule><br>&nbsp;&nbsp;&nbsp; &lt;/Style>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;Layer name="world" srs="+proj=latlong +datum=WGS84" status="on"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StyleName>My_Style&lt;/StyleName><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Datasource><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Parameter name="file">./data/tuto/TM_WORLD_BORDERS_SIMPL-0.2&lt;/Parameter><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Parameter name="type">shape&lt;/Parameter><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Datasource><br>&nbsp;&nbsp;&nbsp; &lt;/Layer><br> &lt;/Map><br><br><br> ************* my TileCache configuration file : <br>&nbsp;[world]<br>type=MapnikLayer<br>mapfile=/var/www/html/RetD/mapnik/mapfile.xml<br>layers=world<br><br>TileCache generate all the tile but only with the background color.<br> <br>Best regards and thanks for your help.<br><br>Arnaud<br>-- <br>--------------------------------------------------------------------<br>Van De Casteele Arnaud<br>72 Rue de la colline des camélias 97400 Saint-Denis<br>0262 30 67 79 - 0692 23 73 17<br> SIG - WebMapping - GPS embarqué<br>Site internet : <a href="http://geotribu.net/">http://geotribu.net/</a><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>