[mapserver-users] Date: Tue, 19 Feb 2002 15:44:41 -0500

Steve Lime steve.lime at dnr.state.mn.us
Wed Feb 20 10:46:46 EST 2002


At the moment you can't do an itemquery on more than one layer at a
time. There is
no workaround for this at the moment (other than using mapscript-
sorry. It's not a 
limitation in the query code per se but rather a limitation in how the
CGI program 
considers the qlayer parameter. There is already a feature request that
has been filed
in bugzilla requesting the ability to set multiple query layers and I
hope to address
this soon.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Shaik Anwar Hussain <shussain at atsincorp.com> 02/19/02 02:48PM >>>
Hi Friends,

        Thanks for your help, its working fine for filtering one layer.


I changed my query like following and it working fine.
http://208.163.164.119:6500/cgi-bin/mapserv?map=../htdocs/pams1/pams.map&lay

ers=flightline&mode=itemnquery&zoomdir=0&imgxy=585 295&imgext=300434
-148033
322234 1655445&zoomsize=2&mapext=-252600 -148033 274400 165545
&qlayer=flightline&map_flightline_header=mapdisplay.html&map_flightline_temp
late=zoomto.html&map_flightline_filter=%22204A%22%22218A%22

I want to do filtering multiple layers, i passed the url like 
http://208.163.164.119:6500/cgi-bin/mapserv?map=../htdocs/pams1/pams.map&lay

ers=flightline&mode=itemnquery&zoomdir=0&imgxy=585 295&imgext=300434
-148033
322234 1655445&zoomsize=2&mapext=-252600 -148033 274400 165545
&qlayer=flightline photo
&map_flightline_header=mapdisplay.html&map_flightline_template=zoomto.html&m
ap_flightline_filter=%22204A%22%22218A%22
&map_photo_header=mapdisplay.html&map_photo_template=zoomto.html&map_photo_f
ilter=%22204A%22%22218A%22

where flightline and photo are two layers.

Do you think what i am passing the url is correct to do multiple
filters.

i am getting the error like

msQueryByAttributes(): General error message. No query layer defined. 


i defined the filter item in my map file for the two layers.

Can any one help me whats wrong in that url.

Thanks,
Anwar




More information about the mapserver-users mailing list