logo separator

Style functions

20
Jan

In a mkgmap style, you can now do more than just test the values of tags.

length()
Gives the length of a way in meters. This can be used to omit short driveways and the like.
    highway=residential & access=private
       & length() > 50 ...
is_complete()
True if all the nodes of a way were present in the input file.
is_closed()
True if the first point is the same as the last. This can be useful to determine if something might be a polygon when it could otherwise be ambiguous.

This useful feature was added by WanMil.

Posted by steve on 20 Jan 2013

Latest commits

  • mkgmap-r4767 raise minimum resolution of overview map to 13 to match the alignment of tiles produced by splitter with default resolution ....
    11 jun 2021
  • mkgmap-r4766 map-split.patch - fix possible "Problem writing line ..." message which caused data loss of huge polygons.
    11 jun 2021
  • mkgmap-r4765 rework roundabout checks (roundaboutchecks4.patch by Mike Baggaley).
    10 jun 2021
  • mkgmap-r4763 - fix bug in Coord.distToLineSegment(Coord a, Coord b), it returned Double.NaN when a and b are the same.
    08 jun 2021
  • mkgmap-r4760 minor performance tweak: only create node instance when it is needed.
    06 jun 2021
See more...