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 (<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><?xml version="1.0" encoding="utf-8"?><br><!DOCTYPE Map><br><Map srs="+proj=latlong +datum=WGS84" bgcolor="#4682b4"><br>
<Style name="My_Style"><br> <Rule> <br> <PolygonSymbolizer><br> <CssParameter name="fill">#c7e9b4</CssParameter><br> </PolygonSymbolizer><br>
<LineSymbolizer><br> <CssParameter name="stroke">black</CssParameter><br> <CssParameter name="stroke-width">.1</CssParameter><br> </LineSymbolizer><br>
</Rule><br> </Style> <br> <Layer name="world" srs="+proj=latlong +datum=WGS84" status="on"><br> <StyleName>My_Style</StyleName><br> <Datasource><br>
<Parameter name="file">./data/tuto/TM_WORLD_BORDERS_SIMPL-0.2</Parameter><br> <Parameter name="type">shape</Parameter><br> </Datasource><br> </Layer><br>
</Map><br><br><br>
************* my TileCache configuration file : <br> [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>