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-r4555 juncArea.path by Ticker Berkin.
    22 jun 2020
  • mkgmap-r4554 Fix for text rendering of documentation.
    22 jun 2020
  • mkgmap-r4553 doc: improve formatting (miscDoc_v3.patch by Ticker Berkin).
    20 jun 2020
  • mkgmap-r4552 miscDoc_v2.patch by Ticker Berkin:.
    20 jun 2020
  • mkgmap-r4551 Report type(node,way,relation) of original element in "generated from" messages (slightly modified generated-from.patch).
    19 jun 2020
See more...