NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

turepalsson
836101625
accept rate: 25%

edited 31 May '13, 21:10

SK53's gravatar image

SK53 ♦
28.1k48268433


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 ♦
82.5k927201273
accept rate: 23%

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

(31 May '13, 16:49) turepalsson

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:

×341
×68
×7
×3

question asked: 31 May '13, 13:44

question was seen: 3,870 times

last updated: 31 May '13, 21:10

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