Thank you so much for your help. The problem was the relative path.<br><br><br>Regards<br><br><br>Arnaud<br><br><div class="gmail_quote">On Wed, Apr 29, 2009 at 9:34 PM, Dane Springmeyer <span dir="ltr"><<a href="mailto:blake@hailmail.net">blake@hailmail.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="">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"> <Parameter name="file">/home/arnaud/data/tuto/TM_WORLD_BORDERS_SIMPL-0.2</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> [world]</div><div>type=Mapnik</div><div class="im"><div>mapfile=/var/www/html/RetD/mapnik/mapfile.xml</div><div>layers=world</div></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><div></div><div class="h5"><div>On Apr 29, 2009, at 4:53 AM, Arnaud Vandecasteele wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">
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/" target="_blank">http://geotribu.net/</a><br></div></div><div class="im"> _______________________________________________<br>
Tilecache mailing list<br><a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
</div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><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>