Commit: r1073: Add highway shields and other ways of modifying values in the style files.

Version 1073 was commited by steve on 2009-07-02 12:55:28 +0100 (Thu, 02 Jul 2009) Add highway shields and other ways of modifying values in the style files. Implemented as a series of modifiers that can be used in the style files. HighwaySymbolFilter: inserts the highway symbol markers after cleaning up the name. HeightFilter: Prepends the value that makes the garmin display as an elevation. SubstitutionFilter: allows arbitary substitutions within a value. PrependFilter: Prepend one the garmin magic values to a string. Patch by Toby Speight as the end result of a discussion involving a number of people see http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q2/001573.html for the full details. This only appears to work with 8bit outputs.

Hi So the highway shield patch is in, sorry about the delay, let me know if that is not the latest or if there are any updates. I have a couple of questions First is the PrependFilter still really needed? Also it doesn't appear to work with 6 bit. I think the documentation is overly complex here. I suspect that there are not really different representation for 8 bit and 6 bit apart from the transformation that happens anyway when you do the translation. So I think that perhaps just using the '8-bit' codes everywhere except in the final translation in Format6Encoder would just work. Thanks ..Steve

0> In article <20090702110711.GA13364@parabola.demon.co.uk>, 0> Steve Ratcliffe <URL:mailto:steve@parabola.demon.co.uk> ("Steve") wrote: Steve> So I think that perhaps just using the '8-bit' codes everywhere Steve> except in the final translation in Format6Encoder would just Steve> work. Oh yes, that's what I meant to do, but ran out of Round Tuits... That does appear to be the right approach.

Shouldn't these symbol names be the same (the other symbol names are)? HighwaySymbolFilter: + symbols.put("hbox", "\u0004"); // box with horizontal bands PrependFilter.java: + symbols_6bit.put("boxx", "\u002d"); // box with horizontal bands + symbols_8bit.put("boxx", "\u0004");

svn commit wrote:
Version 1073 was commited by steve on 2009-07-02 12:55:28 +0100 (Thu, 02 Jul 2009)
Add highway shields and other ways of modifying values in the style files.
Implemented as a series of modifiers that can be used in the style files.
HighwaySymbolFilter: inserts the highway symbol markers after cleaning up the name. HeightFilter: Prepends the value that makes the garmin display as an elevation. SubstitutionFilter: allows arbitary substitutions within a value. PrependFilter: Prepend one the garmin magic values to a string.
Patch by Toby Speight as the end result of a discussion involving a number of people see http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q2/001573.html for the full details.
This only appears to work with 8bit outputs. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
I would like to thank all who contributed to making highway shields possible in mkgmap. Although I am unsure if I can use the changes directly, given that I am using polish format files as input, I have understood enough from the patches to be able to implement this myself with a preprocessor of the mp file. Garvan

Hi
I would like to thank all who contributed to making highway shields possible in mkgmap. Although I am unsure if I can use the changes directly, given that I am using polish format files as input, I have
Yes we need to read the polish format symbols too. If there is not a patch already I will create one. ..Steve

A side effect of this commit is to make address search even less usable than it was before (surely not possible, I hear you say) because it redefines a road's name to include its reference and the highway shield thingy (if appropriate). So, for example, a road called "Letsbe Avenue" (where all the police live) that has a reference A123 will now get assigned the name "A123 Letsbe Avenue" (plus the shield code if the road type warrants it) and so it will show up in the address search in the A section rather than the L section (not sure what the shield code does for search). As roads can have up to 4 labels we could set one of the labels to be the original road name and then the searching would work as before. The problem now is that by altering the name in the style file we lose the original name. Something to ponder. Cheers, Mark

As roads can have up to 4 labels we could set one of the labels to be the original road name and then the searching would work as before. The problem now is that by altering the name in the style file we lose the original name.
Something to ponder.
Funnily enough I was just adding the ~[0x##] notation to the polish reader and saw that my test file had Label and Label2 where Label had the name and Label2 contained the reference and shield. So I was already pondering... So I agree we should split the name and the ref into 2 different labels. ..Steve
participants (5)
-
Garvan & maew
-
Mark Burton
-
Steve Ratcliffe
-
svn commit
-
Toby Speight