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-r4429 Default style: Use railway=abandoned only as routable way when certain criterias match.
    21 jan 2020
  • mkgmap-r4425 Fix problems introduced with changes in the NET-no-NOD branch reg. routable maps at resolution 23 (merge in r4360):.
    17 jan 2020
  • mkgmap-r4424 see r4423, forgot changed unit test.
    17 jan 2020
  • mkgmap-r4423 improve *.typ file handling (Patch typCodePage_v4.patch by Ticker Berkin with small modifications).
    17 jan 2020
  • mkgmap-r4420 The ivy/maven repository is now https only.
    15 jan 2020
See more...