[Mapcss] Regexp as attribute selection

Komяpa me at komzpa.net
Mon Jul 19 10:08:50 BST 2010


2010/7/19 Richard Fairhurst <richard at systemed.net>:
> Chris Browet wrote:
>>
>> In the doc, it is described that regexp attribute selection is allowed
>> ("way[highway=~/primary/]    /* regex */").
>>
>> While it is inherently nice, the problem is that there is almost as many
>> regexp syntaxes as there are implementations.
>> At least, the syntax used should be defined (is the example perl?) but I
>> doubt it will be practical to implement a specific syntax for MapCSS in
>> every programming language (not even speaking of those not having
>> builtin support).

I strongly oppose dropping regexes from spec.
I can't imagine, where will you use * placeholder in wild life (except
for [foo=*] which is just [foo]). Same for ?.
If you can't support regexes in your renderer, just don't do it.

-- 
Komяpa aka Darafei Praliaskouski
xmpp:me at komzpa.net mailto:me at komzpa.net




More information about the Mapcss mailing list