<div dir="ltr">Alexandre<br><br>Excellent - that works!<br><br>FYI - This is why I believe that Open Source can easily prevail even when people put down the &#39;many eyes see more bugs&#39; notion.&nbsp; In another life I worked with / as a partner for a proprietary company (now you can buy franking machines from the same parent company wink wink nudge nudge) and you&#39;d never get this response so quickly and also having &#39;had it from the horses mouth a.k.a. Developers&#39; that there is an issue and this is the best way around it.<br>
<br>Thanks so much Alexandre<br><br>Kind regards<br>Mike<br><br><br><br><br><br><div class="gmail_quote">2008/7/18 Alexandre Dube &lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve been told by developers that there seems to be a bug when using &quot; &quot; in the expression parser...<br>
<br>
You should use a regular expression instead like the following :<br>
<br>
EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road Closure$|^Stop\/Go Boards$|^Two-Way Signals$/<br>
<br>
See at : <a href="http://mapserver.gis.umn.edu/docs/howto/msexpressions" target="_blank">http://mapserver.gis.umn.edu/docs/howto/msexpressions</a><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 class="Ih2E3d">
thanks Alexandre but unfortunately it didn&#39;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? &nbsp;in .NET you can say @stringvariable and it will ignore quotes inside etc?<br>
<br>
Cheers<br>
Mike<br>
<br></div>
2008/7/18 Alexandre Dube &lt;<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> &lt;mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>&gt;&gt;:<div><div></div><div class="Wj3C7c">
<br>
<br>
 &nbsp; &nbsp;Hi Mike,<br>
<br>
 &nbsp; &nbsp; I&#39;m not sure about that, but try eq instead of =<br>
<br>
 &nbsp; &nbsp; EXPRESSION (&#39;[TRAFFIC_TYPE]&#39; eq &#39;Lane Closure&#39; OR ...<br>
<br>
 &nbsp; &nbsp;Best Regards,<br>
 &nbsp; &nbsp;Alexandre<br>
<br>
 &nbsp; &nbsp;Mike Saunt wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hi All<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I&#39;ve got a MapFile that used to work fine in v4.10 but now<br>
 &nbsp; &nbsp; &nbsp; &nbsp;fails in v5.0<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Basically the CLASSITEM field has double quote in field value<br>
 &nbsp; &nbsp; &nbsp; &nbsp;and this is then returning an error - msEvalExpression:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Expression parser error. Failed to parse expression<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;The CLASS EXPRESSION looks like this<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLASSITEM &#39;TRAFFIC_TYPE&#39; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CLASS<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXPRESSION (&#39;[TRAFFIC_TYPE]&#39; = &#39;Lane Closure&#39; OR<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&#39;[TRAFFIC_TYPE]&#39; = &#39;Multi-Way Signals&#39; OR &#39;[TRAFFIC_TYPE]&#39; =<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&#39;Road Closure&#39; OR &#39;[TRAFFIC_TYPE]&#39; = &#39;Stop/Go Boards&#39; OR<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&#39;[TRAFFIC_TYPE]&#39; = &#39;Two-Way Signals&#39;)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE # Severe (RED)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL &#39;triangle&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 9<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR 255 0 0<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUTLINECOLOR 0 0 0<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I&#39;ve tried double quote vs. single quotes in the map file but<br>
 &nbsp; &nbsp; &nbsp; &nbsp;to no avail<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Anyone any thoughts?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Kind regards<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Mike<br>
 &nbsp; &nbsp; &nbsp; &nbsp;------------------------------------------------------------------------<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp;mapserver-users mailing list<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br></div></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; <br>
<br>
<br>
 &nbsp; &nbsp;--  &nbsp; &nbsp;Alexandre Dubé<br>
 &nbsp; &nbsp;Mapgears<br></div>
 &nbsp; &nbsp;<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a> &lt;<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a>&gt;<div class="Ih2E3d"><br>
<br>
<br>
------------------------------------------------------------------------<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>
 &nbsp;<br>
</div></blockquote><div><div></div><div class="Wj3C7c">
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</div></div></blockquote></div><br></div>