Why not ask your question on the new OpenStreetMap Community Forum?

When mapnik renders e.g. a dual carriageway in a scale that is zoomed out far enough that it does not make sense to render the ways separately, does it "merge" the ways before rendering, or does it just render them on top of each other, hoping that the result won't be too ugly?

(I could probably figure this out by expermimenting and/or reading code, but I am hoping that somebody can give a quick "it does/doesn't merge" off the top of his or her head. :-) )

asked 31 May '13, 13:44

turepalsson's gravatar image

accept rate: 25%

edited 31 May '13, 21:10

SK53's gravatar image

SK53 ♦

It does not merge the roads. In fact merging the roads would be computationally quite expensive and unlikely to be possible "on the fly". There's existing work in preprocessing data to find and merge such lines, but not for rendering - just for labelling. See https://github.com/migurski/Skeletron

permanent link

answered 31 May '13, 15:32

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Thanks for the answer, and for the link; some interesting references there!

(31 May '13, 16:49) turepalsson
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 31 May '13, 13:44

question was seen: 3,585 times

last updated: 31 May '13, 21:10

powered by OSQA