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

Is there any way to draw curves (e.g. Bézier curves) on Open Street Map or is straight lines the only way to draw paths?

asked 16 Sep '11, 17:25

Jonas_'s gravatar image

Jonas_
662152233
accept rate: 0%

edited 16 Sep '11, 17:29


The only way to draw curves in the OpenStreetMap data model is using many short straight sections. You can't draw true curves such as Béziers. This is a deliberate design choice to keep the data model as simple as possible.

You may be able to convert OpenStreetMap data to true curves after exporting it to a graphics or GIS package, but that would require extra work on your part.

permanent link

answered 16 Sep '11, 17:31

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108
accept rate: 18%

2

Note that some renderers, for example osmarender, smoothe the angles more than mapnik, making them look curvyer.

(16 Sep '11, 18:30) Vincent de P... ♦

These sidewalks near my house seem to be rendered as bezier-like curves. In the ID editor, they are straight lines with right angles.

https://www.openstreetmap.org/#map=20/44.03628/-92.46942&layers=C

permanent link

answered 26 Mar '19, 20:16

JHartley's gravatar image

JHartley
111
accept rate: 0%

1

The cyclemap layer does attempt to render paths as curves. But because OSM itself does not actually support curves in the data, the renderer has to guess – which it does extremely aggressively, as your map shows.

(26 Mar '19, 20:22) Tordanik

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:

×352
×95

question asked: 16 Sep '11, 17:25

question was seen: 8,552 times

last updated: 26 Mar '19, 20:22

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