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-r4283 document special case with relative path for option input-file given in a config file like template.args.
    08 mar 2019
  • mkgmap-r4282 fix problem introduced with r4278: --remove-ovm-work-files stopped to work when --output-dir option is used to specify a different directory.
    04 mar 2019
  • mkgmap-r4281 improve default style points, patch by Ticker Berkin:.
    02 mar 2019
  • mkgmap-r4280 improve default style polygons, patch by Ticker Berkin:.
    02 mar 2019
  • mkgmap-r4279 improve default style lines, patch by Ticker Berkin:.
    02 mar 2019
See more...