[mapserver-users] Changing class EXPRESSION by URL
Steve.Lime at dnr.state.mn.us
Thu Mar 26 22:05:10 EDT 2009
Replacing the entire expression is going to be possible in 5.4 but is not
recommended for what you're trying to do. It's just too hard to secure
depending on what type of data source you're dealing with. A better
option if you know the basic structure of your expression is fixed is to
just pass portions of it. E.g.:
(('[field1]' eq '%something1%' or '[field2]' eq '%something2%'))
This way you can apply validation patterns against each variable (in this
case something1 and something2. In the layer metadata you'd do something
This would restrict the value domain for something1 to 3-digit numbers and
the value domain for something2 to a 5 character string, all lower case. Any
deviation would throw an error.
>>> Rui Gomes <ruijgomes at gmail.com> 03/26/09 7:50 PM >>>
I'm trying to do this:
Using checkbox i build a expression like:
(('[field1]' eq 'something1' or '[field2]' eq 'something2'))
and then use only the records that match using the class EXPRESSION
I read in the web that is not possible in mapserver 5. Is that true?
Or exist another way to do this?
mapserver-users mailing list
mapserver-users at lists.osgeo.org
More information about the mapserver-users