Hi Daniel, Thank you for your response, I guess my osm.xml file may be a concern.
I have checked out the source pretty recently and run generate_xml: svn export http://svn.openstreetmap.org/applications/rendering/mapnik cd mapnik ./generate_xml.py --host localhost --port 5432 --user 'apache' --dbname gis --symbols ./symbols/ --world_boundaries ./world_boundaries/ --password '***' --prefix='nz' the result message is: Include files written successfully! Pass the osm.xml file as an argument if you want to serialize a new version or test reading the XML But the file osm.xml is not updated and dosn't work with generate_tiles.py... Then I followed the install.txt in manik/archive: cd archive/ vi set-mapnik-env source set-mapnik-env ./customize-mapnik-map >$MAPNIK_MAP_FILE cd .. The resulting osm.xml file works fine with generate_tiles.py, and it has one admin layer and one place_names layer: <Layer name="admin" status="on" 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 +over"> <StyleName>admin</StyleName> <Datasource> <Parameter name="type">postgis</Parameter> <Parameter name="user">apache</Parameter> <Parameter name="password">***</Parameter> <Parameter name="dbname">gis</Parameter> <Parameter name="table"> (select way,admin_level from nz_roads where "boundary"='administrative') as admin</Parameter> <Parameter name="estimate_extent">false</Parameter> <Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter> </Datasource> </Layer> <Layer name="placenames" status="on" 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 +over"> <StyleName>country</StyleName> <StyleName>state</StyleName> <StyleName>capital</StyleName> <StyleName>city</StyleName> <StyleName>town</StyleName> <StyleName>suburb</StyleName> <StyleName>village</StyleName> <StyleName>hamlet</StyleName> <Datasource> <Parameter name="type">postgis</Parameter> <Parameter name="user">apache</Parameter> <Parameter name="password">***</Parameter> <Parameter name="dbname">gis</Parameter> <Parameter name="table">(select way,place,capital,name,ref from nz_point where place is not null) as placenames</Parameter> <Parameter name="estimate_extent">false</Parameter> <Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter> </Datasource> </Layer> Have I followed the correct steps? Another reason I could imagine is I have only a partial osm data in my PostGIS database. Thanks again for your help! Sige Daniel Behr-2 wrote: > > the shape files are used to render only the land contours of the map. to > find the place where the purple boundaries are defined in your XML style > file, look for layer tags like > > <Layer name="admin-01234" [...]> > <StyleName>admin-01234</StyleName> > .... > and > <Layer name="admin-5678" [...]> > <StyleName>admin-5678</StyleName> > .... > > how these layers are rendered is defined by the style tags according to > these layers. you find the style definitions in the upper part of the > file. > > From my older mapnik installation, I remember that the Layers and > Styles could be named slightly different. > > the same goes for the placenames. there should be 3 layers in your XML > named 'placenames-[...]' > > If you created your own XML style file from the source XML file coming > with mapnik, you should actually have those borders rendered by default > (AFAIK). > If the tags mentioned above are not in your XML file, better start from > new. Have a look at the README file in your mapnik installation folder, > especially the part about how to generate your own style with the script > generate_xml.py > > BTW there was no image attached to your message... > > regards > Daniel > > > Am 12.05.2011 03:44, schrieb sige: >> >> Hi, >> >> I have tried to render map tiles following the steps specified in: >> http://wiki.openstreetmap.org/wiki/Mapnik >> and checked out mapnik from: >> http://svn.openstreetmap.org/applications/rendering/mapnik >> >> The map tiles are rendered fine and look OK in details except that the >> purple line for world/territorial boundaries and place names which are >> shown >> on standard OSM maps are missing(as shown in attached image). >> http://old.nabble.com/file/p31599045/osm_print.png >> I have thought the world boundaries should comes from the shape files in >> %WORLD_BOUNDARIES_DIR%, I had a look at the osm.xml file, the layers >> uses >> the shapes files are: >> >> <Layer name="world" status="on" 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 +over"> >> <StyleName>world</StyleName> >> <Datasource> >> <Parameter name="type">shape</Parameter> >> <Parameter >> name="file">/home/postgres/osm/mapnik/world_boundaries/shoreline_300</Parameter> >> </Datasource> >> </Layer> >> <Layer name="coast-poly" status="on" 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 +over"> >> <StyleName>coast-poly</StyleName> >> <Datasource> >> <Parameter name="type">shape</Parameter> >> <Parameter >> name="file">/home/postgres/osm/mapnik/world_boundaries/processed_p</Parameter> >> </Datasource> >> </Layer> >> <Layer name="builtup" status="on" srs="+proj=merc +datum=WGS84 +over"> >> <StyleName>builtup</StyleName> >> <Datasource> >> <Parameter name="type">shape</Parameter> >> <Parameter >> name="file">/home/postgres/osm/mapnik/world_boundaries/builtup_area</Parameter> >> </Datasource> >> </Layer> >> >> It looks like the layers don't render any lines for world boundaries. >> >> I am wondering what should I look at to get the world boundaries rendered >> like that on the official OSM map? >> >> Thanks, >> >> Sige > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users > > -- View this message in context: http://old.nabble.com/missing-world-boundaries-purple-line-and-place-names-tp31599045p31607232.html Sent from the Mapnik - Users mailing list archive at Nabble.com. _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

