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-r4278 correct code that checks for existing ovm_*.img,.
    13 feb 2019
  • mkgmap-r4277 partly revert r4276: don't print message.
    13 feb 2019
  • mkgmap-r4276 Print useful message when no input file was given.
    13 feb 2019
  • mkgmap-r4275 improve reader for polish (*.mp) format:.
    12 feb 2019
  • mkgmap-r4274 revert changes from r4273, not the right place to do this.
    12 feb 2019
See more...