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_
662152133
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.2k1785108
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, 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, 20:22) Tordanik
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:

×308
×65

question asked: 16 Sep '11, 17:25

question was seen: 5,111 times

last updated: 26 Mar, 20:22

powered by OSQA