logo separator

[mkgmap-dev] Append Name with general rules via style-file

From Marko Mäkelä marko.makela at iki.fi on Sat Aug 8 16:45:38 BST 2009

Hi Steve,

> In this case you could give each value a default value of nothing, so
> it would always match with just the one rule
> 
>    { name '${ref|def:} ${name|def:} ${name1|def:} ${name2|def:}' }
> 
> But you would get extra spaces when any of the value were empty.
> 
> You should also be able to do this to append any number of things
> with only one line for each thing to be appended:
> 
> highway=* {
> 	set fullname='';
> 	set fullname='${ref}';
> 	set fullname='${fullname} ${name}';
> 	set fullname='${fullname} ${name1}';
> 	set fullname='${fullname} ${name2}';
> 	name '${fullname}';
> }

Thank you very much, I will try either approach for naming the bus stops.
The attributes I'm planning to include are name, ref, operator,
shelter=yes/no, possibly even amenity=waste_basket.

	Marko



More information about the mkgmap-dev mailing list