logo separator

[mkgmap-dev] Anyone verify that Exit info and Destination info still works in mkgmap r3669?

From Gerd Petermann GPetermann_muenchen at hotmail.com on Thu Mar 3 05:26:25 GMT 2016

Hi Greg,


I don't think that r3669 introduced the problem. You can check this on your own

using the default style.

Another good tool to debug the style is the echotags action.

Use it like this:

(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true)
  { echotags "before";   name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'; echotags "after"}
The expected result would be a pair of two lines, the first one ending with before, the 2nd with after. The 2nd line should be different as the

name action should add mkgmap:label1 .


Gerd




________________________________
Von: mkgmap-dev-bounces at lists.mkgmap.org.uk <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago at gmail.com>
Gesendet: Donnerstag, 3. März 2016 00:00
An: Development list for mkgmap
Betreff: [mkgmap-dev] Anyone verify that Exit info and Destination info still works in mkgmap r3669?

I seem to have lost the 'Nuvi' looking Exit and Destination strings I use to get on mkgmap with --process-exits & --process-destination options.

Here is my compile command:

java -ea -Xmx1024M -jar \MKGMAP\mkgmap-r3669\mkgmap-r3669\mkgmap.jar --gmapsupp --description="Metro Area 2016.3.1" --latin1 --index --x-split-name-index --bounds=\MKGMAP\bounds.zip --location-autofill=is_in,nearest --housenumbers --overview-mapname=Plymouth-ov --overview-mapnumber=12390000 --remove-ovm-work-files --style-file=\MKGMAP\openmapchest-style\openmapchest --check-styles --family-id=555 --family-name="Plymouth" --product-id=1 --series-name="Metro Area 2016.3.1" --area-name="My maps" --min-size-polygon --route --drive-on=detect,right --check-roundabouts --check-roundabout-flares --remove-short-arcs --add-pois-to-areas --pois-to-areas-placement="entrance=main;entrance=yes;building=entrance" --generate-sea=extend-sea-sectors,multipolygon,floodblocker,close-gaps=6000 --make-poi-index --make-opposite-cycleways --process-destination --process-exits --tdbfile --poi-address --verbose --input-file=12390005.osm.pbf --input-file=12390006.osm.pbf --input-file=12390007.osm.pbf master_thin.txt


And here is the section in the 'lines' file:

# start of rules for process-exits and process-destination options
# which may add info to a part of these highway=*_link roads:
# motorway_link, trunk_link, primary_link, secondary_link, tertiary_link
# build destination hint
dest_hint=* { delete dest_hint }
(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true
#  { set dest_hint = '${destination:ref|subst: =>} ${destination|subst:;=> |subst:/=> }' |
  { set dest_hint = '${destination:ref|subst: =>|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} ${destination:street|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy} - ${destination|subst:;=>,|subst:/=>,}' |


         '${destination:street|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy} - ${destination|subst:;=>,|subst:/=>,}'
         '${ref|subst: =>|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} - ${destination|subst:;=>,|subst:/=>,}' |
         '${exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} ${exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |
         '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |
         '${destination|subst:;=>,|subst:/=>,}';
       }
# build exit hint
exit_hint=* { delete exit_hint }
(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true
  { set exit_hint = 'Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |
         'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' |
         'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} ${mkgmap:exit_hint_exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |
         'Exit ${mkgmap:exit_hint_exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |
         'Exit ${mkgmap:exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |
         'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}';
       }

# use destination hint and/or exit hint to build name
(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true)
  {    name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'}

# end of rules for process-exits and process-destination options


Am I missing something, or did the EXIT and DESTINATION feature stop working?

Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160303/fa09a121/attachment.html>


More information about the mkgmap-dev mailing list