Hello, I'm trying to render tiles with a very simple stylesheet. For data feed I'm using OSM file extract from the planet dump. I've read Mapnik can handle OSM XML files with some limitations. There are two problems:
You can see the result here: http://dev.ivanatora.info/roads/ At least the big roads in these two layers "Roads" and "Roads tiles" should match. The second one seems like a projection problem and I tried tons of different variants but in vain. Here is my latest stylesheet: http://dev.ivanatora.info/tests/mapnik_style.xml I've tried also simplier things for srs - "+proj=merc +datum=WGS84" and "+proj=latlon +datum=WGS84". I think the data from the planet dump extract is in latlon projection, but something is not right... I would really appreciate some insight. asked 04 Jun '12, 17:45 ivanatora |
When rendering with Mapnik, you have an input projection and an output projection. The input projection is what your data is in, and has to be given in the You likely want your map in Google Mercator projection so your
looks ok (but try writing srs="+init=epsg:3857" which should also work and is clearer). Your
answered 04 Jun '12, 18:37 Frederik Ramm ♦ Yep, it does make sense in that way and that was the problem. Thank you!
(05 Jun '12, 15:01)
ivanatora
2
@frederik-ramm I'm a little late to the party but the code above should be
(29 Mar '17, 22:12)
k-nut
Indeed, I modified the answer. Thanks.
(29 Mar '17, 23:03)
Frederik Ramm ♦
|