I've battled trying to narrow this down for a couple of days.
I have a lines style file that contains:
highway=* & maxspeed=40mph {set mcssl=40}
highway=primary & mcssl=40 [0x04 resolution 19]
highway=* & mcssl=40 [0x04 resolution 22]
I'm then running a stripped down (in JSOM) set of OSM data against this.
The data file contains two roads. The first road is the original, whilst
the second is a copy (in JOSM) with a name added (and dragged a bit so
it is visible). Both have primary=highway and maxspeed=40mph. To me it
seems that as both ways have the same maxspeed and highway attributes
they should both become visible at the same resolution (ie. 19).
However, they don't. The one without the name becomes visible at 3mi
(which I guess is 19), whilst the one with the name becomes visible at
0.5mi (which I guess is 22).
It seems therefore that having a name key (or a given value for that
key) affects the style file somehow.
I've tried to look at the code but have no idea where to start (as my
Java knowledge is virtually zero and I don't know how data moves through
the mkgmap).
Files are attached. Mkgmap version: 1180 (although I've tried a few
other recent version other the past few days). mapsource: 6.13.7
Any ideas?
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
<node id='-1' action='modify' timestamp='2008-03-24T20:00:15Z' visible='true' version='5' lat='51.33620658881399' lon='-1.110167078238406' />
<node id='-2' action='modify' timestamp='2008-03-24T20:00:17Z' visible='true' version='3' lat='51.32968780130509' lon='-1.105419278238406' />
<node id='-3' action='modify' timestamp='2008-11-23T23:13:35Z' visible='true' version='4' lat='51.335710865812395' lon='-1.110190178238406' />
<node id='-4' action='modify' timestamp='2008-03-24T19:59:02Z' visible='true' version='1' lat='51.339031749984365' lon='-1.1094719782384062' />
<node id='-5' action='modify' timestamp='2009-02-08T20:23:09Z' visible='true' version='2' lat='51.32859527098673' lon='-1.104623978238406' />
<node id='-6' action='modify' timestamp='2008-03-06T23:56:13Z' visible='true' version='3' lat='51.33533862363075' lon='-1.110141078238406' />
<node id='-7' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='2' lat='51.33144882779343' lon='-1.106729778238406' />
<node id='-8' action='modify' timestamp='2008-03-24T20:00:15Z' visible='true' version='2' lat='51.33404452463371' lon='-1.109563078238406' />
<node id='-9' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='3' lat='51.33069724452549' lon='-1.106170578238406' />
<node id='-10' action='modify' timestamp='2008-03-24T20:00:16Z' visible='true' version='2' lat='51.33347901246945' lon='-1.1089783782384062' />
<node id='-11' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='2' lat='51.33283981174973' lon='-1.108210978238406' />
<node id='-12' action='modify' timestamp='2008-03-24T19:59:06Z' visible='true' version='1' lat='51.33458104130092' lon='-1.1098647782384061' />
<node id='-13' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='2' lat='51.33205493365529' lon='-1.107219678238406' />
<node id='-14' action='modify' timestamp='2008-03-24T19:59:06Z' visible='true' version='1' lat='51.3289742121334' lon='-1.1049147782384061' />
<node id='-15' action='modify' timestamp='2009-02-28T18:55:52Z' visible='true' version='1' lat='51.327892080198396' lon='-1.1038989782384063' />
<node id='-16' action='modify' timestamp='2009-02-08T20:28:07Z' visible='true' version='8' lat='51.34113032400358' lon='-1.1091698782384058' />
<node id='-17' action='modify' timestamp='2008-05-05T23:20:57Z' visible='true' version='5' lat='51.33474511581643' lon='-1.109966478238406' />
<node id='-18' action='modify' timestamp='2008-03-24T20:00:12Z' visible='true' version='2' lat='51.3288403329262' lon='-1.1048148782384062' />
<node id='-19' action='modify' timestamp='2008-05-05T23:20:58Z' visible='true' version='2' lat='51.328646563020584' lon='-1.1046696782384058' />
<node id='-20' action='modify' timestamp='2008-11-23T23:13:35Z' visible='true' version='6' lat='51.34202318530859' lon='-1.1092362782384058' />
<node id='-21' action='modify' timestamp='2006-12-03T20:59:29Z' visible='true' version='1' lat='51.327791595804385' lon='-1.103787178238406' />
<node id='-22' action='modify' timestamp='2009-02-28T18:55:55Z' visible='true' version='2' lat='51.32740085648906' lon='-1.103434678238406' />
<node id='-23' action='modify' timestamp='2008-03-24T19:59:09Z' visible='true' version='1' lat='51.33110558110489' lon='-1.106475878238406' />
<node id='-24' action='modify' timestamp='2008-03-24T19:59:03Z' visible='true' version='1' lat='51.33699086699455' lon='-1.109961478238406' />
<node id='-25' action='modify' timestamp='2008-03-07T00:06:14Z' visible='true' version='4' lat='51.33706455554864' lon='-1.109942578238406' />
<node id='-26' action='modify' timestamp='2009-02-28T18:55:55Z' visible='true' version='5' lat='51.326263833075245' lon='-1.1027633782384063' />
<node id='-27' action='modify' timestamp='2008-04-02T20:44:57Z' visible='true' version='3' lat='51.33843224310664' lon='-1.1096035782384062' />
<node id='-28' action='modify' timestamp='2008-03-07T00:06:15Z' visible='true' version='3' lat='51.33926161427898' lon='-1.109428778238406' />
<node id='-29' action='modify' timestamp='2008-11-04T01:39:13Z' visible='true' version='4' lat='51.34052851748582' lon='-1.1092403782384062' />
<node id='-30' action='modify' timestamp='2009-02-08T20:22:51Z' visible='true' version='1' lat='51.32837010595694' lon='-1.1043941782384061' />
<node id='-31' action='modify' timestamp='2008-04-02T20:44:59Z' visible='true' version='3' lat='51.33795741686155' lon='-1.109708678238406' />
<node id='-32' action='modify' timestamp='2009-02-28T18:55:52Z' visible='true' version='1' lat='51.32820493160996' lon='-1.104227778238406' />
<node id='-33' action='modify' timestamp='2008-03-24T19:59:03Z' visible='true' version='1' lat='51.319124873437914' lon='-1.1101018406354786' />
<node id='-34' action='modify' timestamp='2008-05-05T23:20:58Z' visible='true' version='2' lat='51.31077731802635' lon='-1.1048100406354786' />
<node id='-35' action='modify' timestamp='2009-02-28T18:55:52Z' visible='true' version='1' lat='51.3103355145404' lon='-1.1043681406354786' />
<node id='-36' action='modify' timestamp='2008-11-23T23:13:35Z' visible='true' version='4' lat='51.31784437346647' lon='-1.1103305406354789' />
<node id='-37' action='modify' timestamp='2009-02-28T18:55:55Z' visible='true' version='5' lat='51.30839365969715' lon='-1.102903740635479' />
<node id='-38' action='modify' timestamp='2008-03-24T19:59:06Z' visible='true' version='1' lat='51.31671410869378' lon='-1.110005140635479' />
<node id='-39' action='modify' timestamp='2008-03-06T23:56:13Z' visible='true' version='3' lat='51.317471986231624' lon='-1.1102814406354788' />
<node id='-40' action='modify' timestamp='2009-02-08T20:23:09Z' visible='true' version='2' lat='51.31072600600723' lon='-1.1047643406354788' />
<node id='-41' action='modify' timestamp='2008-03-24T20:00:17Z' visible='true' version='3' lat='51.311818962018556' lon='-1.1055596406354786' />
<node id='-42' action='modify' timestamp='2009-02-08T20:28:07Z' visible='true' version='8' lat='51.32326594356657' lon='-1.1093102406354787' />
<node id='-43' action='modify' timestamp='2008-03-24T19:59:06Z' visible='true' version='1' lat='51.31110509480363' lon='-1.105055140635479' />
<node id='-44' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='2' lat='51.31497220064744' lon='-1.1083513406354788' />
<node id='-45' action='modify' timestamp='2008-03-24T19:59:09Z' visible='true' version='1' lat='51.3132372942511' lon='-1.106616240635479' />
<node id='-46' action='modify' timestamp='2008-03-24T20:00:15Z' visible='true' version='5' lat='51.31834028963974' lon='-1.1103074406354787' />
<node id='-47' action='modify' timestamp='2009-02-28T18:55:52Z' visible='true' version='1' lat='51.31002254123144' lon='-1.104039340635479' />
<node id='-48' action='modify' timestamp='2008-03-24T20:00:15Z' visible='true' version='2' lat='51.31617738296339' lon='-1.1097034406354787' />
<node id='-49' action='modify' timestamp='2008-03-07T00:06:15Z' visible='true' version='3' lat='51.32139650560633' lon='-1.1095691406354788' />
<node id='-50' action='modify' timestamp='2006-12-03T20:59:29Z' visible='true' version='1' lat='51.30992201768541' lon='-1.103927540635479' />
<node id='-51' action='modify' timestamp='2009-02-08T20:22:51Z' visible='true' version='1' lat='51.31050075324505' lon='-1.104534540635479' />
<node id='-52' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='3' lat='51.3128287985637' lon='-1.1063109406354787' />
<node id='-53' action='modify' timestamp='2008-03-24T19:59:02Z' visible='true' version='1' lat='51.321166551734954' lon='-1.1096123406354788' />
<node id='-54' action='modify' timestamp='2008-11-04T01:39:13Z' visible='true' version='4' lat='51.32266390252291' lon='-1.109380740635479' />
<node id='-55' action='modify' timestamp='2008-03-07T00:06:14Z' visible='true' version='4' lat='51.31919859070716' lon='-1.1100829406354786' />
<node id='-56' action='modify' timestamp='2008-04-02T20:44:59Z' visible='true' version='3' lat='51.3200917999548' lon='-1.1098490406354788' />
<node id='-57' action='modify' timestamp='2008-04-02T20:44:57Z' visible='true' version='3' lat='51.32056681123438' lon='-1.109743940635479' />
<node id='-58' action='modify' timestamp='2008-03-24T20:00:12Z' visible='true' version='2' lat='51.31097116343194' lon='-1.104955240635479' />
<node id='-59' action='modify' timestamp='2008-11-23T23:13:35Z' visible='true' version='6' lat='51.32415915282608' lon='-1.1093766406354786' />
<node id='-60' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='2' lat='51.31358067468609' lon='-1.1068701406354786' />
<node id='-61' action='modify' timestamp='2009-02-28T18:55:55Z' visible='true' version='2' lat='51.309531126125925' lon='-1.1035750406354787' />
<node id='-62' action='modify' timestamp='2008-03-24T20:00:18Z' visible='true' version='2' lat='51.31418701671936' lon='-1.1073600406354789' />
<node id='-63' action='modify' timestamp='2008-03-24T20:00:16Z' visible='true' version='2' lat='51.31561165043901' lon='-1.109118740635479' />
<node id='-64' action='modify' timestamp='2008-05-05T23:20:57Z' visible='true' version='5' lat='51.316878247144146' lon='-1.1101068406354788' />
<way id='-65' action='modify' timestamp='2009-04-14T14:05:46Z' visible='true' version='4'>
<nd ref='-20' />
<nd ref='-16' />
<nd ref='-29' />
<nd ref='-28' />
<nd ref='-4' />
<nd ref='-27' />
<nd ref='-31' />
<nd ref='-25' />
<nd ref='-24' />
<nd ref='-1' />
<nd ref='-3' />
<nd ref='-6' />
<nd ref='-17' />
<nd ref='-12' />
<nd ref='-8' />
<nd ref='-10' />
<nd ref='-11' />
<nd ref='-13' />
<nd ref='-7' />
<nd ref='-23' />
<nd ref='-9' />
<nd ref='-2' />
<nd ref='-14' />
<nd ref='-18' />
<nd ref='-19' />
<nd ref='-5' />
<nd ref='-30' />
<nd ref='-32' />
<nd ref='-15' />
<nd ref='-21' />
<nd ref='-22' />
<nd ref='-26' />
<tag k='ref' v='A340' />
<tag k='highway' v='primary' />
<tag k='maxspeed' v='40mph' />
</way>
<way id='-66' action='modify' timestamp='2009-04-14T14:05:46Z' visible='true' version='4'>
<nd ref='-59' />
<nd ref='-42' />
<nd ref='-54' />
<nd ref='-49' />
<nd ref='-53' />
<nd ref='-57' />
<nd ref='-56' />
<nd ref='-55' />
<nd ref='-33' />
<nd ref='-46' />
<nd ref='-36' />
<nd ref='-39' />
<nd ref='-64' />
<nd ref='-38' />
<nd ref='-48' />
<nd ref='-63' />
<nd ref='-44' />
<nd ref='-62' />
<nd ref='-60' />
<nd ref='-45' />
<nd ref='-52' />
<nd ref='-41' />
<nd ref='-43' />
<nd ref='-58' />
<nd ref='-34' />
<nd ref='-40' />
<nd ref='-51' />
<nd ref='-35' />
<nd ref='-47' />
<nd ref='-50' />
<nd ref='-61' />
<nd ref='-37' />
<tag k='ref' v='A340' />
<tag k='highway' v='primary' />
<tag k='name' v='Aldermaston Road' />
<tag k='maxspeed' v='40mph' />
</way>
</osm>
#
# Style options.
#
# The name tag determines what tag is used as the name of a
# feature. Usually this is just 'name' but you might want something
# more specific such as name:en or another language variant.
# You can specify a list here, the first one that exists will be
# used
#
# Example:
# name_tag = name:en, int_name, name
# The levels specification for this style
#
#levels = 0:23, 1:22, 2:21, 3:20, 4:19, 5:18, 6:16, 7:12
#levels = 0:24, 1:22, 2:21, 3:20, 4:19, 5:18, 6:16, 7:12
levels = 0:22, 1:19, 2:18, 3:16
#Don't forget we need a blank line at the end or Java crashes
highway=* & maxspeed=40mph {set mcssl=40}
highway=primary & mcssl=40 [0x04 resolution 19]
highway=* & mcssl=40 [0x04 resolution 22]
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev