<div>Hi Steve / Daniel</div>
<div> </div>
<div>I'll try to pull something together later today...</div>
<div> </div>
<div>Kind regards</div>
<div>mike<br><br> </div>
<div><span class="gmail_quote">On 21/07/2008, <b class="gmail_sendername">Daniel Morissette</b> <<a href="mailto:dmorissette@mapgears.com">dmorissette@mapgears.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Steve is right, I had only guessed that there might be a bug based on the problem description, but we've been unable to reproduce the issue that you report. I meant to reply on Friday asking for a testcase to reproduce but I forgot.<br>
<br>Daniel 
<div><span class="e" id="q_11b46e9afa74aeab_1"><br><br><br>Steve Lime wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">While I'm glad it works (the regex should execute faster too) the other<br>expression should<br>have worked as well. Can you share the data you were using for some<br>
testing?<br><br>Steve<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 7/18/2008 at 8:16 AM, in message<br></blockquote></blockquote></blockquote><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:5a9686e80807180616n492ec21cma0170d2dfc9633b9@mail.gmail.com" target="_blank">5a9686e80807180616n492ec21cma0170d2dfc9633b9@mail.gmail.com</a>>, "Mike<br>
Saunt"<br><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mikesaunt@gmail.com" target="_blank">mikesaunt@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Alexandre<br><br>Excellent - that works!<br><br>FYI - This is why I believe that Open Source can easily prevail even<br>
</blockquote>when<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">people put down the 'many eyes see more bugs' notion.  In another<br></blockquote>life I<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">worked with / as a partner for a proprietary company (now you can<br></blockquote>buy<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">franking machines from the same parent company wink wink nudge nudge)<br></blockquote>and<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">you'd never get this response so quickly and also having 'had it from<br></blockquote>the<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">horses mouth a.k.a. Developers' that there is an issue and this is<br></blockquote>the best<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">way around it.<br><br>Thanks so much Alexandre<br><br>Kind regards<br>Mike<br><br><br><br><br><br>2008/7/18 Alexandre Dube <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I've been told by developers that there seems to be a bug when using<br></blockquote></blockquote>" " in<br>

<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">the expression parser...<br><br>You should use a regular expression instead like the following :<br><br>EXPRESSION /^Lane Closure$|^Multi-Way Signals$|^Road<br>
</blockquote></blockquote>Closure$|^Stop\/Go<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Boards$|^Two-Way Signals$/<br><br>See at : <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mapserver.gis.umn.edu/docs/howto/msexpressions" target="_blank">http://mapserver.gis.umn.edu/docs/howto/msexpressions</a> <br>
Mike Saunt wrote:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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<br>
</blockquote></blockquote></blockquote>literal<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">string i.e. sort of like escaping it?  in .NET you can say<br></blockquote></blockquote></blockquote>@stringvariable<br>

<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">and it will ignore quotes inside etc?<br><br>Cheers<br>Mike<br><br>2008/7/18 Alexandre Dube <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a><br>
</blockquote></blockquote></blockquote><mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> <br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">:<br></blockquote></blockquote><br>  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><br>      Hi All<br><br>      I've got a MapFile that used to work fine in v4.10 but now<br>
      fails in v5.0<br><br>      Basically the CLASSITEM field has double quote in field<br></blockquote></blockquote></blockquote>value<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">      and this is then returning an error - msEvalExpression:<br>      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<br>      '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]'<br>
</blockquote></blockquote></blockquote>=<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">      'Road Closure' OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR<br>      '[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<br></blockquote></blockquote></blockquote>but<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">      to no avail<br><br>      Anyone any thoughts?<br><br>      Kind regards<br>      Mike<br><br><br></blockquote>
</blockquote></blockquote>------------------------------------------------------------------------<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">      _______________________________________________<br>      mapserver-users mailing list<br>      <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>       <mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
      <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a> <br><br><br>  --    Alexandre Dubé<br>
  Mapgears<br>  <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mapgears.com/" target="_blank">www.mapgears.com</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com</a>><br>
<br><br><br></blockquote></blockquote></blockquote>------------------------------------------------------------------------<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">_______________________________________________<br>mapserver-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a> <a onclick="return top.js.OpenExtLink(window,event,this)" 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>Alexandre Dubé<br>Mapgears<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mapgears.com/" target="_blank">www.mapgears.com</a> <br><br></blockquote></blockquote>_______________________________________________<br>
mapserver-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote><br><br>-- <br></span></div><span class="sg">Daniel Morissette</span> 
<div><span class="e" id="q_11b46e9afa74aeab_3"><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>_______________________________________________<br>
mapserver-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</span></div></blockquote></div><br>