NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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.

permanent link

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

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?

permanent link

answered 21 Apr '16, 15:12

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×440
×341
×68
×5

question asked: 21 Apr '16, 14:57

question was seen: 3,559 times

last updated: 21 Apr '16, 20:00

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum