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-r4262 improve default style (defaultStyleTidy3e.patch by Ticker Berkin with small modifications).
    11 jan 2019
  • mkgmap-r4261 don't treat amenity=shelter + shelter_type=public_transport like other shelters.
    07 jan 2019
  • mkgmap-r4260 prevent IndexOutOfBoundsException for special case where wrong house number intervals cause a road to be split into > 0x3ff segements..
    28 dec 2018
  • mkgmap-r4259 apply_first-v2.patch: Implement and document new apply_first style command..
    13 dec 2018
  • splitter-r592 route-complete.patch: Implement a new option --route-rel-values which tells splitter that route relations of the given type should be kept complete. ....
    13 dec 2018
See more...