Hi Gerd,
> If the way has a mkgmap:road-speed tag, the value is
> evaluated.
I'm not sure what you mean by mkgmap:road-speed, I was referring to
roads_speed=N form object definition.
I have attached here simple source data with 3 primary ways. When
compiling with r2979, default style and --x-no-mergeroads option, I get
3 roads, one with speed 4 and 2 roads with speed 3. With merging roads
ways are merged correctly, this is improvement compared to previous mkgmap.
Next I have added following statement at the end of "lines" file:
highway=* {set mkgmap:road-speed-max=2; echotags "end"}
Resulting img is the same, mkgmap:road-speed-max=2 is ignored.
Next test, my statement changed to:
highway=* {delete mkgmap:road-speed-class; set mkgmap:road-speed-max=2;
echotags "end"}
All, roads in img have gotten default speed 4, mkgmap:road-speed-max=2
is ignored.
Last test:
highway=* {set mkgmap:road-speed-class=3; set mkgmap:road-speed-max=2;
echotags "end"}
All roads get speed 3, mkgmap:road-speed-max=2 is ignored.
All tags displayed by echotags are as expected.
I execute mkgmap with following command:
java -jar mkgmap.jar --route --x-no-mergeroads
--style-file=styles\default maxspeed.osm
--
Best regards,
Andrzej
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' upload='true' generator='JOSM'>
<node id='-13545' visible='true' lat='54.3481292' lon='18.6346278' />
<node id='-13544' visible='true' lat='54.3480109' lon='18.634212' />
<node id='-13543' visible='true' lat='54.3478667' lon='18.6338012' />
<node id='-13542' visible='true' lat='54.3476214' lon='18.6332567' />
<node id='-13541' visible='true' lat='54.3474108' lon='18.6328409' />
<node id='-13540' visible='true' lat='54.3461991' lon='18.6310095' />
<node id='-13539' visible='true' lat='54.3459077' lon='18.6304551' />
<node id='-13538' visible='true' lat='54.3456983' lon='18.6299462' />
<node id='-13537' visible='true' lat='54.3455343' lon='18.6293664' />
<node id='-13536' visible='true' lat='54.3454619' lon='18.6289486' />
<node id='-13535' visible='true' lat='54.3453978' lon='18.6283858' />
<node id='-13534' visible='true' lat='54.3452926' lon='18.6262918' />
<node id='-13533' visible='true' lat='54.345247' lon='18.6249071' />
<node id='-13532' visible='true' lat='54.3451756' lon='18.6222682' />
<node id='-13531' visible='true' lat='54.3484413' lon='18.636316' />
<node id='-13530' visible='true' lat='54.3483629' lon='18.6357465' />
<node id='-13529' visible='true' lat='54.3478903' lon='18.6416666' />
<node id='-13528' visible='true' lat='54.3480028' lon='18.6413393'>
<tag k='crossing' v='traffic_signals' />
<tag k='highway' v='crossing' />
</node>
<node id='-13527' visible='true' lat='54.3480216' lon='18.6412846'>
<tag k='highway' v='traffic_signals' />
</node>
<node id='-13526' visible='true' lat='54.3482108' lon='18.6407459' />
<node id='-13525' visible='true' lat='54.3484635' lon='18.6397212' />
<node id='-13524' visible='true' lat='54.3485452' lon='18.6392475' />
<node id='-13523' visible='true' lat='54.3486019' lon='18.638684' />
<node id='-13522' visible='true' lat='54.3486273' lon='18.6382632' />
<node id='-13521' visible='true' lat='54.3486197' lon='18.6377462' />
<node id='-13520' visible='true' lat='54.3485706' lon='18.6372562' />
<way id='100' visible='true'>
<nd ref='-13532' />
<nd ref='-13533' />
<nd ref='-13534' />
<nd ref='-13535' />
<nd ref='-13536' />
<nd ref='-13537' />
<nd ref='-13538' />
<nd ref='-13539' />
<nd ref='-13540' />
<nd ref='-13541' />
<nd ref='-13542' />
<nd ref='-13543' />
<nd ref='-13544' />
<nd ref='-13545' />
<nd ref='-13530' />
<tag k='highway' v='primary' />
<tag k='lanes' v='3' />
<tag k='lit' v='yes' />
<tag k='maxaxleload' v='10' />
<tag k='maxspeed' v='80' />
<tag k='name' v='Aleja Armii Krajowej' />
<tag k='oneway' v='yes' />
<tag k='ref' v='7' />
<tag k='source:maxaxleload' v='RozporzÄ
dznie Ministra Infrastruktury z dnia 8 czerwca 2011 r Poz. 704' />
<tag k='source:maxaxleload:url' v='http://isap.sejm.gov.pl/Download?id=WDU20111240704&type=2' />
<tag k='source:maxspeed' v='sign' />
<tag k='surface' v='asphalt' />
</way>
<way id='101' visible='true'>
<nd ref='-13530' />
<nd ref='-13531' />
<nd ref='-13520' />
<tag k='bridge' v='yes' />
<tag k='highway' v='primary' />
<tag k='lanes' v='3' />
<tag k='lit' v='yes' />
<tag k='maxaxleload' v='10' />
<tag k='maxspeed' v='50' />
<tag k='name' v='Aleja Armii Krajowej' />
<tag k='oneway' v='yes' />
<tag k='ref' v='7' />
<tag k='source:maxaxleload' v='RozporzÄ
dznie Ministra Infrastruktury z dnia 8 czerwca 2011 r Poz. 704' />
<tag k='source:maxaxleload:url' v='http://isap.sejm.gov.pl/Download?id=WDU20111240704&type=2' />
<tag k='source:maxspeed' v='sign' />
<tag k='surface' v='asphalt' />
</way>
<way id='102' visible='true'>
<nd ref='-13520' />
<nd ref='-13521' />
<nd ref='-13522' />
<nd ref='-13523' />
<nd ref='-13524' />
<nd ref='-13525' />
<nd ref='-13526' />
<nd ref='-13527' />
<nd ref='-13528' />
<nd ref='-13529' />
<tag k='highway' v='primary' />
<tag k='lanes' v='3' />
<tag k='lit' v='yes' />
<tag k='maxaxleload' v='10' />
<tag k='maxspeed' v='50' />
<tag k='name' v='Aleja Armii Krajowej' />
<tag k='oneway' v='yes' />
<tag k='ref' v='7' />
<tag k='source:maxaxleload' v='RozporzÄ
dznie Ministra Infrastruktury z dnia 8 czerwca 2011 r Poz. 704' />
<tag k='source:maxaxleload:url' v='http://isap.sejm.gov.pl/Download?id=WDU20111240704&type=2' />
<tag k='source:maxspeed' v='sign' />
<tag k='surface' v='asphalt' />
</way>
</osm>
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev