Fw: [Mapserver-users] set filter with cgi

Steve Lime steve.lime at dnr.state.mn.us
Mon Apr 28 22:41:34 EDT 2003


Between 3.6.x and 3.7 (now 4.0 given all the changes) there was a major
change in how attribute queries are done. It should be more straight
forward. I will try to fix the test suite to run against 4.0 and will
post a note to the list yet this week about its availability.

Note that attribute queries were the only ones to under go outward
change between releases.

Steve

>>> "Alessandro Galasso" <agalasso at gndci.cs.cnr.it> 04/28/03 11:12 AM
>>>
Hi Babak,
in MS 3.6 I only set FILTERITEM without FILTER for a give layer.
In the cgi querystring, then, i use this:

http://laplace/mapserver/mapserv.exe
?map=calabria/calabria.map
&imgsize=863+384
&qlayer=myLayer
&mode=itemquerymap
&map_myLayer_filter=COSENZA

and everything's right.
Unfortunately i tried to use the same syntax with 3.7 version and obtain
an
error:

msQueryByAttributes(): Query error. No query expression defined.

i don't know why.... if someone does I'll appreciate any hint and/or
clarification...

---
Alessandro Galasso

> ----- Original Message -----
> From: <babak.tehrani at geosysnet.de>
> To: <Mapserver-users at lists.gis.umn.edu>
> Sent: Monday, April 28, 2003 12:32 PM
> Subject: [Mapserver-users] set filter with cgi
>
>
> >
> > Hello,
> >
> > Is it possible to change a layer-FILTER as CGI-URL. In the mapfile I
> > write something like
> >
> >   FILTERITEM "NAME"
> >   FILTER /Germany|France/
> >
> > to display only this two polygons. What I have to write in the
mapfile
> > for an empty inital query and how can I set the filter via URL??
> >
> >
>
/cgi-bin/mapserv.exe?map=c:/path/to/europa.map&mode=map&map_mylayern
> ame_filter=/Germany|France/
> >
> > or ... map_mylayername_filter="/Germany|France/"
> >
> > Thanks for help,
> >
> > babak
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list