Hi, I have two suggestions (but I am not quiet sure whether this is right):
first I think you should put the value for "mode" from "map" to "query" or "itemquery" or itemnquery" or something like that. Second: I could not understand your qstring expression. In my little mapserver project I have the possibility to search for features that have the same values in a special database column. For example: When I want to search for all objects that have the value "13" in the database-column "TM_NR" then my qstring looks like this: "qstring=TM_NR=13". Very simple, but it works. Perhaps you could try this. But as I mentioned I don't really know whether it works or not. Good luck and bst regards Daniel -------- Original-Nachricht -------- Datum: Fri, 21 Jul 2006 09:03:51 -0700 Von: rock well <[EMAIL PROTECTED]> An: [email protected] Betreff: Re: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage > Hey david, > Thanks for your reply, i tried this but it didnt work. I am going > to give you the complete link that we are using. Actually we are trying to > query a states layer from the shape file and display just the north dakota > state. So the link we are using are > > > http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/scripts/stateswms.map&CONTEXT=c:/Inetpub/wwwroot/mapserverdata/map_files/contextmap.xml&LAYERS=states&QLAYER=states&QITEM=state&QSTRING=('[state]'='ND') > > any suggestions please ... > > Thanks for your time and effort ... > kris > > "Fawcett, David" <[EMAIL PROTECTED]> wrote: > Kris, > > This may not quite work, but it should be closer. Try something like: > > > http://pathtomapserv.exe?MODE=itemnquerymap&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=('[colname]'='value') > > > David. > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On > Behalf Of rock well > Sent: Thursday, July 20, 2006 5:49 PM > To: [email protected] > Subject: [UMN_MAPSERVER-USERS] CGI Qlayer,Qstring variables usage > > > Hello all, > I was trying to query one of the layers from a shape file in the > url, i am used map as the mode and gave the layer name for Qlayer, column > name for Qitem and QString. Part of the URL looks like > > > http://pathtomapserv.exe?MODE=map&LAYERS=layer1&QLAYER=layer1&QITEM=colname&QString=("colname=value") > > the map is displayed but it didnt filter the layer with the given > querystring variables .... > > Is there something missing, can anyone suggest with something ... > > Thanks for your effort and time .... > kris > > --------------------------------- > Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > > > --------------------------------- > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1¢/min. -- Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
