This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Color road with slope gradient overlay

0

Hello

I would like to know if it is possible from OSM to create a map with road (not track) with a gradient color about how much the slop is. For example: color from 3% to 20% per 20m.

I live in a place where it is very flat and I am looking to train more for climbing montain on my bike. I know few climb but I want to discover more.

I would love to have all road colored like this for example: https://help.locusmap.eu/public/attachments/54070186b043d0995b7137703d3b6e3f.png

asked 16 May '22, 09:29

n3b's gravatar image

n3b
11112
accept rate: 0%

edited 17 May '22, 10:52

SK53's gravatar image

SK53 ♦
28.1k48268433

Do you have access to the slope data or are you hoping to infer it from elsewhere? https://www.openstreetmap.org/way/232211240 looks like one of your roads and it appears that the slope information isn't in OSM.

(16 May '22, 09:52) SomeoneElse ♦

I though OSM have elevation data :/ Maybe instead do something base on https://wiki.openstreetmap.org/wiki/Key:incline ?

(16 May '22, 11:00) n3b
3

OSM doesn't have elevation data. The incline tag and similar is rarely used. You almost certainly want to look at SRTM or one of its many derivatives.

(16 May '22, 11:03) Richard ♦

One Answer:

0

Looks like other people have tried that before. E.g. https://ropensci.github.io/slopes/articles/roadnetworkcycling.html looks like a comprehensive guide how to accomplish your task.

(I haven't tried it myself. Just found it by googling)

answered 16 May '22, 22:47

TZorn's gravatar image

TZorn
12.3k764225
accept rate: 15%