[Mapserver-users] setFilter() Mapscript

Sean Gillies sgillies at frii.com
Thu Mar 6 08:00:26 PST 2003


Sven,

Read the mapfile reference, the argument to setFilter() is a string
and should be either a mapserver regular expression or an SQL WHERE
clause.

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.

peace,
Sean

On Thursday, March 6, 2003, at 07:55  AM, Sven Jacobi wrote:

> Hi list,
>
> I want to pass several attributes as a filter
> for a certain query, everything seems to work fine,
> but as result I get only the first attribute.
>
> testlayer.setFilter('BU,FI,EI,SLB,ELB,KI,DOU,ÜNB,LÄ')
>
> Only the class named 'BU' is drawn.
> In addition I would like to know how I can reset the
> FILTER into the initial state.
>
> Thanks in forward,
>
> best regards,
>
> Sven
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
--
Sean Gillies
sgillies at frii.com
http://www.frii.com/~sgillies





More information about the MapServer-users mailing list