<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Since moving to mapserver 5.0 (mostly to test AGG), a layer
in my map file that has this class definition:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp; CLASS<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION (%qstring%)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 230 230 179<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp; END<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The query no longer works.&nbsp; If I change it to an explicit
query string, like:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION ('[DISTRICT]' eq '<st1:place w:st="on">ALTAMONT</st1:place>')<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The polygon is filled as expected.&nbsp; In the &#8220;MapServer
4.10 to 5.0 Migration Guide&#8221;, there is mention that in the case of
qstring queries,&nbsp; the qstring_validation_pattern layer-level metadata is
required. &nbsp;It also says the absence of this setting produces a fatal error.&nbsp; My
maps still work, they just do not fill in the polygon that matches the qstring.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I cannot find any examples or documentation for the qstring_validation_pattern
setting.&nbsp; Can anybody give me a pointer in the right direction?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>David S. Hunter</span></font></b><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><br>
</span></font><em><i><font face="Times New Roman">Lead Software Engineer</font></i></em><i><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-style:
italic'><br>
</span></font><em><i><font face="Times New Roman">Fidelity National Geographic
Solutions</font></i></em></i><i><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial;font-style:italic'><br>
</span></font><em><i><font face="Times New Roman">division of Fidelity National
Information Services</font></i></em></i><i><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;font-style:italic'><br>
</span></font><st1:Street w:st="on"><st1:address w:st="on"><em><i><font
  face="Times New Roman">5353 Gamble Drive, Suite 201</font></i></em></st1:address></st1:Street></i><i><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-style:
italic'><br>
</span></font><st1:place w:st="on"><st1:City w:st="on"><em><i><font
  face="Times New Roman">St. Louis Park</font></i></em></st1:City><em><i><font
 face="Times New Roman">, <st1:State w:st="on">MN</st1:State> <st1:PostalCode
 w:st="on">55416</st1:PostalCode></font></i></em></st1:place></i><i><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-style:
italic'><br>
</span></font><em><i><font face="Times New Roman">Email: </font></i></em></i><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><a
href="mailto:david.hunter@fnf.com"><em><i><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>david.hunter@fnis.com</span></font></i></em></a><br>
</span></font><em><i><font face="Times New Roman">Phone: 952.542.1440 ext. 256</font></i></em><i><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;font-style:
italic'><br>
</span></font><em><i><font face="Times New Roman">Fax: 952.542.3859</font></i></em></i><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>