logo separator

[mkgmap-dev] Style File Problem

From MarkS OSM at redcake.co.uk on Tue Sep 8 22:58:43 BST 2009

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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: local.osm
Type: text/xml
Size: 11175 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090908/b02672dc/attachment.xml 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: options
Url: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090908/b02672dc/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lines
Url: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090908/b02672dc/attachment-0001.pl 


More information about the mkgmap-dev mailing list