[mapserver-users] mapserver-cgi displays nothing

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Tue Jul 26 05:35:07 PDT 2016


Hi

Test systematically. If you test your validation with some service like http://www.regexpal.com/ you will find that yuk=50 does not validate because it has more than one number in the string.
Try to validate with ^[0-9]+$ 

And yes, variable must be enclosed between %%. That is well documented in http://mapserver.org/cgi/runsub.html.

-Jukka Rahkonen-


________________________________________
Lähettäjä: mapserver-users <mapserver-users-bounces at lists.osgeo.org> käyttäjän  puolestaYves Jacolin <yves.jacolin at camptocamp.com>
Lähetetty: 26. heinäkuuta 2016 10:17
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] mapserver-cgi displays nothing

On Tuesday, July 26, 2016 10:12:58 Ahmet Temiz wrote:
> Our mapserver-cgi displays nothing.
>
> http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/trdem1.map&layer=runt
> imeSubstitution&yuk=50
>
> ​      VALIDATION
>           'yuk' '^[0-9]$'
>       END
>
>       CLASS
>           EXPRESSION ([pixel] >= 'yuk' )
>           STYLE COLOR 255 0 0 END
>       END #end class
>> ​What am I doing wrong?
> regards​
Hello,

You should probably use %:

           EXPRESSION ([pixel] >= '%yuk%' )

Y.
--
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 58 48 20 43 (new !)
Tel (Suisse) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list