gravel roads render as paved

103 views
Skip to first unread message

joost schouppe

unread,
Dec 16, 2014, 12:55:10 PM12/16/14
to osm...@googlegroups.com
I don't know if there's been a long discussion on which roads to render as paved/unpaved. I'd think Osmand would follow the OSM wiki on that. But I was surprised to find that "gravel" roads get rendered the same way as asphalt/concrete/paved roads...  

Poutnik

unread,
Dec 19, 2014, 5:07:25 AM12/19/14
to osm...@googlegroups.com
Just for illustration, Brouter[1] defines 3 state paving. As seen below, isunpaved <> not(ispaved).  

fine_gravel and cobblestone make the 3rd state.

ispaved = ( surface = ( paved or asphalt or concrete or paving_stones )) [2]
isunpaved = not ( ispaved or surface=( "" or fine_gravel or cobblestone) )

--------------
[1] Brouter is an external Android application, usable either as generator of GPX routing file,
either as OSMAnd / Locus / OruxMaps routing engine. It is focused primarily on bicycling.

[2] Brouter profiles use not reversed polish notation syntax(operator first, no parentheses).
The above is rewritten to more usual forms. Original syntax for illustration:
assign ispaved or surface=paved or surface=asphalt or surface=concrete surface=paving_stones assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone

Dne úterý, 16. prosince 2014 18:55:10 UTC+1 joost schouppe napsal(a):

Hardy

unread,
Dec 20, 2014, 5:11:13 PM12/20/14
to osm...@googlegroups.com
There is hardly a way to explain or debug this unless you specify examples, describe how it is rendered on your screen (with what settings), and how that deviates from what you expect.
 
The generic answer is: Yes, OsmAnd uses exactly the tags from the quoted OSM wiki, and uses them to clearly distinguish the different cases when painting the map ...  :-)
 
Best,
Hardy

joost schouppe

unread,
Dec 20, 2014, 7:30:48 PM12/20/14
to osm...@googlegroups.com

Hi Hardy,

Thanks for wanting to look into it and clarifying it shouldn't be rendered as paved in this case.
Here's a screenshot of the road that surprised me. You see the trunk roads and the unclassified road rendered with blue dashes suggesting pavement. Blue dashes obviously disappear when I switch of "Show road surface". When I had a look at the unclassified road in OSM, it had a surface=gravel tag. I'm using version 1.9.4 .

Here's a link for the road in OSM:

http://www.openstreetmap.org/way/91343115/history#map=10/-26.0495/-65.9973

(It never had another surface tag than the correct gravel one)

--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/9-CmlnyRZCQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Max

unread,
Dec 21, 2014, 5:46:30 AM12/21/14
to osm...@googlegroups.com

You see the trunk roads and the unclassified road rendered with blue dashes suggesting pavement.

surface=gravel and surface=paved are blue, but it is not the same blue:
https://github.com/osmandapp/OsmAnd-resources/blob/master/rendering_styles/default.render.xml

surfaceLooselyPavedColor #cbcbe8 (surface=gravel):
http://www.color-hex.com/color/cbcbe8

surfacePavedColor #a7cdf8 (surface=paved):
http://www.color-hex.com/color/a7cdf8

It think these colours are not very clear.

Regards,
Max

joost schouppe

unread,
Dec 21, 2014, 6:05:01 AM12/21/14
to osm...@googlegroups.com

Hmm, it does make sense to pick a color not too different from "paved" for rendering "loosely paved" roads. I'd only noticed blue and brown up to this point, so I thought the style was simplified into paved/unpaved. On the other hand, try as I might, on a rendered map I just cannot see the difference between both kinds of blue.
For me, this particular gravel road felt much closer to unpaved than to paved. The color is closer to paved though. It might make sense to pick a color more "in the middle" between the two. Or it could be blue dash-brown dash-blue dash...

Btw, thanks Max for showing how this works in the render. I've been thinking about changing the render to show paved/unpaved too at lower zoom levels. Now I know where to look!

Reply all
Reply to author
Forward
0 new messages