[Mapserver-users] setFilter() Mapscript
Daniel Morissette
morissette at dmsolutions.ca
Thu Mar 6 08:19:15 PST 2003
Sean Gillies wrote:
>
> As for resetting filter to its original state: I assume you mean a
> NULL state? Something like this:
>
> layer.setFilter(None)
>
> Yes? This cannot be done at present, but if you log into the
> Mapserver bug tracker through the link on the mapserver home page
> and enter this as a feature request for mapscript, I'll be happy to
> add this to mapscript.
>
I didn't try it, but would have imagined that calling setFilter("")
would do the trick. If not then if you decide to add this feature I
would suggest that you modify loadExpressionString() so that if the
expression is an empty string then it's the same effect as setting the
expression to NULL. This way all flavors of MapScript will benefit from
this change at the same time without having to define 'None' or NULL in
every language.
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list