[Mapcss] Questions concerning tests

Stephan Bösch-Plepelits skunk at xover.htu.tuwien.ac.at
Mon Sep 16 19:32:51 UTC 2013


Hi!

1. Unary tests
--------------
The MapCSS 0.2 specification[1] says the following about unary tests:
  way[highway]       /* Matches against all ways with the highway tag set */
  way[!highway]      /* Matches against all ways with the highway tag not set (or set to no/false) */

Question: Wouldn't it be more logical if the first statement does not match
ways with the highway tag set to no or false?

2. Eval boolean type
--------------------
A boolean
  expression is considered "false" if it equals to "0", "no", "false" or ""
  (empty string); [2]

Question: Shouldn't the unary test (above) also consider "0" as false?

[1] http://wiki.openstreetmap.org/wiki/MapCSS/0.2#Tests
[2] http://wiki.openstreetmap.org/wiki/MapCSS/0.2/eval

greetings,
        Stephan
-- 
Seid unbequem, seid Sand, nicht Öl im Getriebe der Welt! - Günther Eich
,---------------------------------------------------------------------.
| Stephan Bösch-Plepelits,                                            |
| Technische Universität Wien   -    Studien Informatik & Raumplanung |
| Projects:                                                           |
| > openstreetbrowser.org > couchsurfing.org > tubasis.at > bl.mud.at |
| Contact:                                                            |
| > Mail: skunk at xover.mud.at > Blog: plepe.at                         |
| > Twitter: twitter.com/plepe > Jabber: skunk at jabber.at              |
`---------------------------------------------------------------------'



More information about the Mapcss mailing list