[Mapcss] Strings and Keywords

Sebastian Klein bastikln at googlemail.com
Mon Jul 19 12:43:46 BST 2010


Hi,

what is the difference between strings and keywords and how are they
processed?

>From the current usage i have the impression, that "..." and '...'
expressions are clearly strings and identifiers can be strings or
keywords depending on the context.

E.g. you can write

way[highway=residential] { text: name; }

or

way["highway"="residential"] { text: "name"; }

but sometimes quotes are needed:

{ text: "de:amtlicher_gemeindeschluessel"; }

Another example would be the yes keyword in conditions. I'd say
[oneway=yes] applies to a oneway tag with value yes, true or 1, but
[oneway="yes"] matches the literal
value "yes", only.

As keywords (unlike strings) are case insensitive, [oneway=Yes] would
work, but [Oneway=yes] or [oneway="Yes"] would not apply to a onway=yes tag.


Sebastian




More information about the Mapcss mailing list