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-r4476 mapnik-TYPViewer-2.patch by Ticker Berkin:.
    01 apr 2020
  • mkgmap-r4475 improvements for typ file source mapnik.txt.
    26 mar 2020
  • mkgmap-r4474 implement support for --copyright-file and --copyright-message option in PolishReader..
    23 mar 2020
  • mkgmap-r4473 use high precision in BoundaryQuadTree.Node.get().
    19 mar 2020
  • mkgmap-r4472 Make sure that getKeystring() doesn't return something like null=way for a rule which cannot be indexed, e.g..
    19 mar 2020
See more...