[mapserver-dev] MapServer Expressions and Bracketing
Seth G
sethg at geographika.co.uk
Wed Oct 9 11:41:06 PDT 2019
Hi all,
Not sure if this is more of a dev or user question. The docs for logical expressions state each expression should be encapsulated in round brackets e.g. ( ( Expression1 ) AND ( Expression2 ) ). This is how mappyfile expects them (see issue at [1]), however it seems MapServer is more flexible and allows expressions such as:
EXPRESSION ("[TIME]" eq 'NOW' AND NOT "[TYPE]" ~ "(something|completely|different)")
This should really be:
EXPRESSION (("[TIME]" eq 'NOW') AND NOT ("[TYPE]" ~ "(something|completely|different)"))
So should MapServer 8 become stricter and fail these errors and stick to a tighter spec, or should the docs be updated to reflect the reality of the parsing?
Seth
[1] https://github.com/geographika/mappyfile/issues/85
--
web:http://geographika.co.uk
twitter: @geographika
More information about the mapserver-dev
mailing list