[mkgmap-dev] exclude words from city / state
From Thorsten Kukuk kukuk at suse.de on Wed Dec 7 18:41:13 GMT 2011
On Tue, Dec 06, toc-rox wrote: > How is it possible to substitute more than one word ? > > I have something like this as names in "admin_level=8": > "Gemeinde Spalt" > "Gemeinde Maxdorf" > "Stadt Linz am Rhein" > "Stadt Rodgau" > > I want to replace "Gemeinde " and "Stadt " with nothing. > How is it possible to combine: > mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level8=* { set > mkgmap:city='${mkgmap:admin_level8|subst:Gemeinde }' } > and > mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level8=* { set > mkgmap:city='${mkgmap:admin_level8|subst:Stadt }' } I only know a way how to do it with three (untested yet): mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level8~'Gemeinde.*' { set mkgmap:city='${mkgmap:admin_level8|subst:Gemeinde }' } mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level8~'Stadt.*' { set mkgmap:city='${mkgmap:admin_level8|subst:Stadt }' } mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8|subst:Gemeinde }' } which will create a huge amount of additional rules ... Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
- Previous message: [mkgmap-dev] exclude words from city / state
- Next message: [mkgmap-dev] [PATCH v1] exclude words from city / state
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list