<br><font size=2 face="sans-serif">VALIDATION should work I use it in several
mapfiles with MS6.</font>
<br><font size=2 face="sans-serif">Perhaps move the VALIDATION block before
DATA, just between LAYER and CONNECTIONTYPE</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Julien Cigar &lt;jcigar@ulb.ac.be&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2011-08-30 07:49</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Polluriel potentiel] &nbsp;Re: [mapserver-users]
Issue with run-time substitution?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>On 08/30/2011 13:43, Stephen Davies wrote:<br>
&gt; I am running mapserver 6.0.1 with map files migrated from 5.6.3.<br>
&gt;<br>
&gt; One of my map files has stopped working properly and I suspect that
it may be a<br>
&gt; bug in the 6.0.1 run-time substitution code.<br>
&gt;<br>
&gt; The relevant map file layer sections look like this:<br>
&gt;<br>
&gt; &nbsp; &nbsp; LAYER<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;CONNECTIONTYPE postgis<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;NAME &quot;battery&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;DATA &quot;geom from wmd &nbsp;using unique
id using SRID=4283&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;CONNECTION &quot;user=scldad dbname=benparts&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;STATUS ON<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;TYPE POINT<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;VALIDATION<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vucv '[0-9]*_[0-9]*'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;END<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;FILTER &nbsp;(stype='B' and uc='%vucv%')<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;PROJECTION<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;init=epsg:4283&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;END<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;MAXSCALE 5000000<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;LABELITEM &quot;label&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;CLASSITEM &quot;state&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;CLASS<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXPRESSION &quot;G&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;STYLE<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLOR &nbsp; &nbsp; &nbsp;
&nbsp;0 255 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SYMBOL 'dot'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIZE 7<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OFFSET 17 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LABEL<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;POSITION CR<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TYPE TRUETYPE<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FONT arial<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIZE 8<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLOR 0 255 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OFFSET 20 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FORCE TRUE<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;STYLE<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GEOMTRANSFORM
'labelpoly'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLOR
&nbsp; 255 255 255<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;END<br>
&gt; .<br>
&gt; .<br>
&gt; END<br>
&gt;<br>
&gt; There are twelve layers with essentially the same definition apart
from the<br>
&gt; STYPE values.<br>
&gt;<br>
&gt; The invoking URL has&amp;vucv=137_11 but the postgresql log reveals
that no<br>
&gt; substitution has occurred. The final pgsql command still has '%vucv%'.<br>
&gt;<br>
&gt; I suspect that having more than one FILTER with the same substitution
breaks<br>
&gt; things as all other substitutions work fine.<br>
&gt;<br>
&gt; (I also tried putting the substitution in the DATA entry but with
no better<br>
&gt; result.)<br>
<br>
You should use a METADATA section, something like:<br>
<br>
METADATA<br>
 &nbsp; &quot;vucv_validation_pattern&quot; '[0-9]*_[0-9]*'<br>
END<br>
<br>
instead of VALIDATION<br>
<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Stephen<br>
&gt;<br>
<br>
<br>
-- <br>
No trees were killed in the creation of this message.<br>
However, many electrons were terribly inconvenienced.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>