[mapserver-users] mapserver-cgi displays nothing

Ahmet Temiz ahmettemiz88 at gmail.com
Tue Jul 26 06:06:46 PDT 2016


Thank you all,
But the problem still exists.

complete layer portion in the map :

LAYER
      NAME 'runtimeSubstitution'
      TYPE RASTER
      DUMP true

      METADATA
         "wms_title"           "WMS Demo Server"
         "wms_onlineresource"  "
http://localhost/cgi-bin/mapserv?map=/var/www/trdem1.map&"
         "wms_srs"             "EPSG:3857"
         "WMS_ENABLE_REQUEST" "*"
         "wms_feature_info_mime_type" "text/html"
         "wms_format" "image/png"
      END

      PROCESSING "NODATA=0"
      PROCESSING "SCALE=AUTO"

      PROCESSING "CLOSE_CONNECTION=DEFER"

      EXTENT  2857613.741389 4274927.875099 4989786.191152 5176940.449967

      DATA 'PG: dbname=tr22 host=localhost user=orkun password=222222
port=5432 schema=public table=o_16_rdem3857 mode=2'

      STATUS ON
      OPACITY 50

      VALIDATION
        'yuk' '^[0-9]+$'
      END

      CLASS
          EXPRESSION ([pixel] >= %yuk% )
          STYLE COLOR 255 0 0 END
      END #end class

END   # layer =trdem_4326

http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/trdem1.map&layer=runtimeSubstitution&yuk=500



On Tue, Jul 26, 2016 at 3:35 PM, Rahkonen Jukka (MML) <
jukka.rahkonen at maanmittauslaitos.fi> wrote:

> 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
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160726/fab5b4e5/attachment-0001.html>


More information about the mapserver-users mailing list