Ticket #789 (new defect)
Map file: comments may interfere with EXPRESSIONs
| Reported by: | sweykam@… | Owned by: | sdlime |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | MapServer C Library | Version: | 4.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I found some interference between #comments behind the EXPRESSION:
EXPRESSION ([Riq50] <=1) didn't show while EXPRESSION '1' did
Problem identified:
Any #comment which contains brackets and parenthesis makes the expression fail
(is apparently not understood as comment) unless the expression itself does not
contain any brackets and parenthesis.
For example:
EXPRESSION ([Riq50] >1) # ([Riq50] >1) - fails
and
EXPRESSION ([Riq50] >1) # ('[Utm50km]' = 'VH4') - fails
while
EXPRESSION '1' # ([Riq50] >1) - is OK
and
EXPRESSION ([Riq50] >1) - is OK
In the first two cases there are parenthesis and brackets, both in the
expression and in the comment.
Funny thing.
Stefanie
Change History
Note: See
TracTickets for help on using
tickets.
