Hi Daniel,

I have now got the generate_xml.py program to update osm.xml by (from
generate_xml.py -help):
   ./generate_xml.py osm.xml my_osm.xml --host localhost ...

the resulting file my_osm.xml does have the admin and placename layers as
you mentioned, but running the generate_tiles.py command generates this
error:
  proj_init_error:failed to initialize projection with:+init=epsg:4326
...

which probably just affect the necountries and nepopulated layers. The
generated tiles still miss the purple world boundaries and place names. So I
guess this is due to the partial osm data in my PostGIS database, is there a
osm file which contains only the word boundaries for downloading?

Thanks,

Sige



Daniel Behr-2 wrote:
> 
> Hi Sige,
> 
> 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-tp31599045p31607521.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

Reply via email to