<div dir="ltr">thanks Alexandre but unfortunately it didn't work<br><br>Do you know if there is a way of forcing MapServer to read out the literal string i.e. sort of like escaping it? in .NET you can say @stringvariable and it will ignore quotes inside etc?<br>
<br>Cheers<br>Mike<br><br><div class="gmail_quote">2008/7/18 Alexandre Dube <<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mike,<br>
<br>
I'm not sure about that, but try eq instead of =<br>
<br>
EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ...<br>
<br>
Best Regards,<br>
Alexandre<br>
<br>
Mike Saunt wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Hi All<br>
<br>
I've got a MapFile that used to work fine in v4.10 but now fails in v5.0<br>
<br>
Basically the CLASSITEM field has double quote in field value and this is then returning an error - msEvalExpression: Expression parser error. Failed to parse expression<br>
<br>
The CLASS EXPRESSION looks like this<br>
CLASSITEM 'TRAFFIC_TYPE' CLASS<br>
EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = 'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR '[TRAFFIC_TYPE]' = 'Two-Way Signals')<br>
STYLE # Severe (RED)<br>
SYMBOL 'triangle'<br>
SIZE 9<br>
COLOR 255 0 0<br>
OUTLINECOLOR 0 0 0<br>
END<br>
END<br>
<br>
I've tried double quote vs. single quotes in the map file but to no avail<br>
<br>
Anyone any thoughts?<br>
<br>
Kind regards<br>
Mike<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</blockquote></div><br></div>