logo separator

[mkgmap-dev] default style lines enhancements

From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Jul 23 11:40:39 BST 2020

Hi Ticker,

I am not a style guru, but I think the quotes for the subst function are even more confusing. If you use quotes I would suggest something like
${destination:ref|subst:" " => ""}
instead of
${destination:ref|subst: =>}
if that really gives the same result.


Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap at jagit.co.uk>
Gesendet: Mittwoch, 22. Juli 2020 16:42
An: mkgmap development
Betreff: [mkgmap-dev] default style lines enhancements

Hi all style gurus

Patch attached of enhancements to default style "lines" which I've been
accumulating for a while. Also includes the parallel changes needed to

I'm happy to explain any of these change in more detail and, if anyone
considers a particular change incorrect, provide a revised patch.

Summary of changes, roughly in order of diffs in the patch.

1/ Sometimes charges for using a pedestrian highway are expressed as a
fee rather than a toll, so pick this up in mkgmap:toll.

2/ Show bridges using type 0x10107. With the mapnik addition, these
look good for narrow highways, but might not show for wide
representations like motorways.

3/ Where it is likely that bits of highway might not be connected to
the road/path system, use mkgmap:set_unconnected_type and
mkgmap:set_semi_connected_type to stop the NET/NOD rather than relying
on NETnoNOD (now disabled) and --check-routing-island-len=+ve, which is
being suspected of causing problems on some devices and BaseCamp.

4/ Quote some filter subst strings that contain spaces - no actual
effect but clearer and safer.

5/ Have line for leisure=track even if area.

6/ Change the type for tracks/raceways etc from 0x30, which doesn't
show on BaseCamp or MapSource, to 0x2a.

7/ For piers, if 'unconnecting', use marine type 0x1040c (Obstruction:
Pier or Jetty) instead of footway.

8/ Change type for the various barriers from 0x17, which doesn't show
on BaseCamp to 0x2b, see:

9/ Consider natural=cliff a barrier.

10/ Add motorway[_link] roundabouts (yes, some do exist).

11/ Unquote some numbers - no actual effect.

12/ Tweak some road speeds

13/ Use 0x09 (high-speed ramp) for road class 4 links

14/ Add footway around car parks if 'connecting'.

15/ Disable coastline. For a long time the tag was suppressed by the
Sea processing and it adds little to the map.

16/ Improve railway platform names and suppress footway if not

17/ Show disused:railway in the same way as railway=disused.

18/ Have cable_car, gondola, funicular as routable, by default with a
toll and pedestrian only.

19/ Show "Course of old Railway", unless a highway has taken over the
way (for you Eric, but I like it as well).

20/ Speed up car ferries.

21/ A few other layout/space fixes.


More information about the mkgmap-dev mailing list