[mkgmap-dev] Similar Arcs
From Mike Baggaley mike at tvage.co.uk on Fri May 21 23:51:08 BST 2021
Hi Gerd, Please find attached the patch for deleting similar arcs. It uses a new mkgmap:nooverlap tag which can be set to a number between 0 and 127 (default 0) in the lines file. If set to a number greater than zero then the overlapping part of the line will be deleted if it overlaps another line, providing the access of the other line is a superset of its access. If both lines have non zero values and have the same access then the line with the higher value will be deleted. In my style file I have the following: highway=service & (area=yes | mkgmap:mp_created=true) & (foot=yes | foot=designated | foot=official | foot=permissive | (foot!=* & (access!=* | access=yes | access=permissive))) {set mkgmap:car=no; set mkgmap:bicycle=no; set foot=yes; set mkgmap:flare-check=no; set mkgmap:numbers=false; set mkgmap:set_unconnected_type=none; set mkgmap:set_semi_connected_type=none; set mkgmap:nooverlap=1} [0x13 road_class=0 road_speed=0 resolution 22] highway=pedestrian & (area=yes | mkgmap:mp_created=true) & (foot=yes | foot=designated | foot=official | foot=permissive | (foot!=* & (access!=* | access=yes | access=permissive))) {set mkgmap:car=no; set mkgmap:bicycle=no; set foot=yes; set mkgmap:flare-check=no; set mkgmap:numbers=false; set mkgmap:set_unconnected_type=none; set mkgmap:set_semi_connected_type=none; set mkgmap:nooverlap=1} [0x0d road_class=0 road_speed=0 resolution 22] amenity=parking & (parking!=* | parking=surface) & (foot=yes | foot=designated | foot=official | foot=permissive | (foot!=* & (access!=* | access=yes | access=permissive))) {set mkgmap:car=no; set mkgmap:bicycle=no; set foot=yes; set mkgmap:numbers=false; set mkgmap:set_unconnected_type=none; set mkgmap:set_semi_connected_type=none; set mkgmap:nooverlap=2; set mkgmap:delivery=no; set mkgmap:truck=no; set mkgmap:bus=no; set mkgmap:taxi=no; set mkgmap:emergency=no } [0x08 road_class=0 road_speed=0 resolution 24 continue] and similar for railway=platform, man_made=pier, man_made=jetty and leisure=slipway. Cheers, Mike -------------- next part -------------- A non-text attachment was scrubbed... Name: similararcs.patch Type: application/octet-stream Size: 7498 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20210521/6c67f63d/attachment-0001.obj>
- Previous message: [mkgmap-dev] Problems with sea in overview map
- Next message: [mkgmap-dev] Similar Arcs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list