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

turepalsson
76191524
accept rate: 30%

edited 31 May '13, 21:10

SK53's gravatar image

SK53 ♦
22.9k46233360


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 ♦
71.3k846451113
accept rate: 24%

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

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:

×313
×51
×7
×3

question asked: 31 May '13, 13:44

question was seen: 2,724 times

last updated: 31 May '13, 21:10

powered by OSQA