[mapserver-users] A problem with the Run-time substitution

Janne Tuovinen janne.tuovinen at menturagroup.com
Mon Nov 7 04:35:46 PST 2016


Hi,

I have a problem when I'm trying to pass a url-parameter to Postgis
query's NATIVE_FILTER in my map file.

My layer looks something like this:

  LAYER
     ...
      VALIDATION
          'param' '.+'
      END
      ...
      DATA "shape from table"
      PROCESSING "NATIVE_FILTER=param in %param%"

   END # LAYER

Here is some examples what I get when I try to pass some values: 

...&param=1000   = > (param in (1000))
...&param='1000' = > (param in (%param%))

What I like to have is: (param in ('1000'))

Is there a way to this with the MapServer 7.0?

Thank you,
Janne



More information about the mapserver-users mailing list