This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

using .osm files on mapnik for rendering

0

Hello,

So after I installed and tried the two tutorials of Mapnik I found on the wiki (with success). I noted that all tutorials I seen on the web are basically using shapefiles. My question is : Is it possible to render on mapnik using .osm files ? If yes, please suggest me some tutorials showing it.

Thank you in advance for your help.

asked 21 Apr '16, 14:57

IDRI%20Sofiane's gravatar image

IDRI Sofiane
16336
accept rate: 0%


2 Answers:

1

In my experience, it used to work but no longer does and you'll need to put your .osm files into a Postgresql database.

I have some scripts that build topo maps for areas I hike that mix OSM data and elevation data (from other sources). Those scripts broke at some update of Mapnik about two years and I had to rewrite them all to pull the OSM data from a database instead of a .osm file. I recall asking on a Mapnik forum about that and was basically told they weren't interested in supporting/fixing .osm file support.

answered 21 Apr '16, 15:17

n76's gravatar image

n76
10.8k1082172
accept rate: 17%

Thank you for your clarification @stf

(21 Apr '16, 20:00) IDRI Sofiane

0

I might be misunderstanding what you're asking, but isn't that what https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ is essentially doing?

answered 21 Apr '16, 15:12

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Source code available on GitHub .