[mkgmap-dev] mp/hh / km/h m or other units in maxspeed or distance keys
From Felix Hartmann extremecarver at gmail.com on Tue Aug 28 13:30:43 BST 2012
On 28.08.2012 13:06, Marko Mäkelä wrote: > On Tue, Aug 28, 2012 at 10:36:59AM +0200, Felix Hartmann wrote: >> Well it's quite a long time, there has been no discussion about this, >> however it's more and more common to put the unit into the main key. >> Could mkgmap do a clean up on this? >> >> It would be great if mkgmap could do the following: >> Remove any non numeric keys (and not "." or "," ) and place them into >> a new key called mkgmap:unit=.... >> Do this for maxspeed, distance, height, width (propose other keys I may >> have missed). > I think that this should be done in the (default) style file, not in the > mkgmap core. We already have a regexp matching operator, and if I > remember correctly, we should also have regexp replace in the action > rules. > > But, I would wait a bit until Steve has overhauled the include mechanism > in the style file parser. Could you give an example of how to do it? I do understand the reqgexp not well enough, to split up values into to keys! I didn't know this was possible - so I'ld like to try it out. If it's possible, then yes of course, this should go into the default style. My change wish, was based on the knowledge that this is not possible (about 2 years ago it certainly was not).
- Previous message: [mkgmap-dev] mp/hh / km/h m or other units in maxspeed or distance keys
- Next message: [mkgmap-dev] mp/hh / km/h m or other units in maxspeed or distance keys
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list