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-r4288 Improve log message when route restriction when via node is not a routing node..
    01 aug 2019
  • mkgmap-r4287 simplify code, no functional change.
    05 jun 2019
  • mkgmap-r4286 mdr5.patch by Ticker Berkin:.
    16 apr 2019
  • mkgmap-r4285 add tag mkgmap:way-length for each POI generated from a line when option --add-pois-to-lines is used. It gives the way length ....
    07 apr 2019
  • mkgmap-r4284 let test-map:all-elements set the transparent flag, use 0x1b instead of 0x51 for background.
    27 mar 2019
See more...