Itemquery
Xin
crazygecko at GMAIL.COM
Wed Sep 28 01:41:46 PDT 2005
Hi,
Test suite
<http://maps.dnr.state.mn.us/mapserver_demos/tests46/itemquery/test.html>
used to have a great example on itemquery, but it doesn't seem to work
anymore.
Here's my understanding of what you need to do.
Have QUERYMAP defined in your mapfile:
QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 255 0
END
Pass qlayer parameter with layer wanting to query. i.e. <input type=hidden
name=qlayer value=mylayer> or &qlayer=mylayer
Set qitem to attribute of qlayer wanting to query, and then set qstring to
value wanting to match.
i.e. &qlayer=mylayer&qitem=name&qstring=MatchName
You can optionally leave out qitem, and use qstring like this:
qstring=('[name]' = 'MatchName').
Hope this helps.
Xin
On 27/09/05, Diana Jimena Pacheco Solano <dianajimena at gmail.com> wrote:
>
> Hi!!
>
> Does someone have an example about how to use itemquery, I'm started
> with this, and I don't know how to do queries (itemquery or
> itemnquery).
>
> Thanks by your help
>
> Saludos, Diana Jimena Pacheco Solano
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050928/5dbff8ce/attachment.htm>
More information about the MapServer-users
mailing list