logo separator

[mkgmap-dev] [PATCH v1] grok unpavedness

From Marko Mäkelä marko.makela at iki.fi on Tue Dec 8 09:42:47 GMT 2009

Hi Mark,

> > The default style-file of course should have something like below:
> > 
> > highway=*&  (surface=unpaved | surface=dirt | surface=sand |
> > surface=ground | surface=gravel | tracktype=grade2 | tracktype=grade3 | tracktype=grade4 | tracktype=grade5 | sac_scale=* | smothness= ........) {add unpaved=yes}
> 
> Felix echoes my thoughts exactly. There's lot's of surface values that
> imply unpavedness so using surface=unpaved isn't the way to go. I did
> wonder about using a mkgmap specific tag, e.g. mkgmap:unpaved=yes but
> as unpaved=yes (or paved=no) do not obviously conflict with existing OSM
> tags, I thought I would not use the mkgmap: prefix.

http://wiki.openstreetmap.org/wiki/Proposed_features/surface_unification
suggests surface:material, but then again, surface:material=asphalt,
surface:condition!=maintained can be worse than some surface:material=gravel.

It seems best to introduce a mkgmap:paved tag that can be translated
into by style files.

> If people are happy with that, I will commit the patch soon as it is.

For what it is worth, I tried your v2 patch with the following, but I was
unable to convince my Edge 705 to suggest using a forest path that it
used to suggest until some weeks ago.  (In other words, it avoided the
unpaved roads no matter what the routing preference was.)

Index: resources/styles/default/points
===================================================================
--- resources/styles/default/points   (revision 1420)
+++ resources/styles/default/points   (working copy)
@@ -1,3 +1,6 @@
+surface=unpaved|surface=ground|surface=grass|surface=gravel|surface=sand|surface=unsurfaced|mtb:scale=* { add paved=no }
+surface=paved|surface=asphalt { add paved=yes }
+
 #aeroway=airport [0x5900 resolution 20]
 aeroway=airport [0x2f04 resolution 20]
 aeroway=aerodrome [0x2f04 resolution 20]

Best regards,

	Marko



More information about the mkgmap-dev mailing list