logo separator

[mkgmap-dev] How do I transform the name of all Ways?

From Colin Smale colin.smale at xs4all.nl on Sun Jun 12 22:59:17 BST 2016

Hi Alexandre, 

I use an Excel spreadsheet (enclosed) to do this kind of transformation
for Dutch-language street names. There's a macro (Alt-f11) which writes
a file "fix_names" (the path is hard-coded in the macro code, sorry
about that - please edit to suit). There's a tab for prefixes, one for
suffixes, and one for the matching rules. You need to "include" this
"fix_names" from an appropriate place in the "lines" file.

I hope it's useful - please let me know if you have any questions! 


On 2016-06-12 23:42, Alexandre de Menezes wrote:

> Hi everyone, 
> I want to do some transformations on the names of all the Ways, is there a standard way to do that?  For example, I want to replace all occurrences of "Avenida"  for "Av.". 
> I tried adding this to my lines file: 
> highway=* & name ~ '(?i)avenida\s+.*' { add streettype:movedend='${name|subst:(?i)avenida\s+~>}, Av.'} # 
> But There was no effect. 
> Thanks in advance, 
> Alexandre 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160612/acc12484/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NlStreetNames.xlsm
Type: application/vnd.ms-excel.sheet.macroenabled.12
Size: 20623 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160612/acc12484/attachment-0001.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_names
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20160612/acc12484/attachment-0001.ksh>

More information about the mkgmap-dev mailing list