<div dir="ltr"><div class="gmail_default" style="font-size:small">Thank you all,</div><div class="gmail_default" style="font-size:small">But the problem still exists.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">complete layer portion in the map :</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default">LAYER</div><div class="gmail_default"> NAME 'runtimeSubstitution'</div><div class="gmail_default"> TYPE RASTER</div><div class="gmail_default"> DUMP true</div><div class="gmail_default"><br></div><div class="gmail_default"> METADATA</div><div class="gmail_default"> "wms_title" "WMS Demo Server"</div><div class="gmail_default"> "wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv?map=/var/www/trdem1.map&">http://localhost/cgi-bin/mapserv?map=/var/www/trdem1.map&</a>"</div><div class="gmail_default"> "wms_srs" "EPSG:3857"</div><div class="gmail_default"> "WMS_ENABLE_REQUEST" "*" </div><div class="gmail_default"> "wms_feature_info_mime_type" "text/html"</div><div class="gmail_default"> "wms_format" "image/png"</div><div class="gmail_default"> END</div><div class="gmail_default"><br></div><div class="gmail_default"> PROCESSING "NODATA=0"</div><div class="gmail_default"> PROCESSING "SCALE=AUTO"</div><div class="gmail_default"><br></div><div class="gmail_default"> PROCESSING "CLOSE_CONNECTION=DEFER" </div><div class="gmail_default"><br></div><div class="gmail_default"> EXTENT 2857613.741389 4274927.875099 4989786.191152 5176940.449967 </div><div class="gmail_default"><br></div><div class="gmail_default"> DATA 'PG: dbname=tr22 host=localhost user=orkun password=222222 port=5432 schema=public table=o_16_rdem3857 mode=2'</div><div class="gmail_default"><br></div><div class="gmail_default"> STATUS ON</div><div class="gmail_default"> OPACITY 50</div><div class="gmail_default"><br></div><div class="gmail_default"> VALIDATION</div><div class="gmail_default"> 'yuk' '^[0-9]+$' </div><div class="gmail_default"> END</div><div class="gmail_default"><br></div><div class="gmail_default"> CLASS</div><div class="gmail_default"> EXPRESSION ([pixel] >= %yuk% )</div><div class="gmail_default"> STYLE COLOR 255 0 0 END</div><div class="gmail_default"> END #end class </div><div class="gmail_default"><br></div><div class="gmail_default">END # layer =trdem_4326 </div><div style="font-size:small"><br></div><div style="font-size:small"><a href="http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/trdem1.map&layer=runtimeSubstitution&yuk=500">http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/trdem1.map&layer=runtimeSubstitution&yuk=500</a><br></div><div style="font-size:small"><br></div><div style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 26, 2016 at 3:35 PM, Rahkonen Jukka (MML) <span dir="ltr"><<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
Test systematically. If you test your validation with some service like <a href="http://www.regexpal.com/" rel="noreferrer" target="_blank">http://www.regexpal.com/</a> you will find that yuk=50 does not validate because it has more than one number in the string.<br>
Try to validate with ^[0-9]+$<br>
<br>
And yes, variable must be enclosed between %%. That is well documented in <a href="http://mapserver.org/cgi/runsub.html" rel="noreferrer" target="_blank">http://mapserver.org/cgi/runsub.html</a>.<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
________________________________________<br>
Lähettäjä: mapserver-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>> käyttäjän puolestaYves Jacolin <<a href="mailto:yves.jacolin@camptocamp.com">yves.jacolin@camptocamp.com</a>><br>
Lähetetty: 26. heinäkuuta 2016 10:17<br>
Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Aihe: Re: [mapserver-users] mapserver-cgi displays nothing<br>
<div><div class="h5"><br>
On Tuesday, July 26, 2016 10:12:58 Ahmet Temiz wrote:<br>
> Our mapserver-cgi displays nothing.<br>
><br>
> <a href="http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/trdem1.map&layer=runt" rel="noreferrer" target="_blank">http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/trdem1.map&layer=runt</a><br>
> imeSubstitution&yuk=50<br>
><br>
> VALIDATION<br>
> 'yuk' '^[0-9]$'<br>
> END<br>
><br>
> CLASS<br>
> EXPRESSION ([pixel] >= 'yuk' )<br>
> STYLE COLOR 255 0 0 END<br>
> END #end class<br>
> <br>
> What am I doing wrong?<br>
> regards<br>
Hello,<br>
<br>
You should probably use %:<br>
<br>
EXPRESSION ([pixel] >= '%yuk%' )<br>
<br>
Y.<br>
--<br>
Responsable Formation et Support<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
Tel (France) : <a href="tel:%2B33%204%2058%2048%2020%2043" value="+33458482043">+33 4 58 48 20 43</a> (new !)<br>
Tel (Suisse) : <a href="tel:%2B41%2021%20619%2010%2043" value="+41216191043">+41 21 619 10 43</a><br>
Mob. : <a href="tel:%2B33%206%2018%2075%2042%2021" value="+33618754221">+33 6 18 75 42 21</a><br>
Fax : 04 79 70 15 81<br>
Mail : <a href="mailto:yves.jacolin@camptocamp.com">yves.jacolin@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" rel="noreferrer" target="_blank">http://www.camptocamp.com</a><br>
</div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Ahmet Temiz<br>Jeoloji Müh.<br>Afet ve Acil Durum Yönetimi Başkanlığı<br>Bilgi İşlem Dairesi Başkanlığı-CBS Grubu<br><br><br>________________________<br><br>Ahmet Temiz<br>Geological Eng.<br>Information Systems - GIS Group<br>Disaster and Emergency Management<br>of Presidency</div></div></div></div></div>
</div>