[mapserver-users] Getting more results in itemnquery

Steve Lime steve.lime at dnr.state.mn.us
Tue Jul 30 11:42:54 EDT 2002


You just need to use a different type of FILTER expression. A regular
expression would do nicely. You could do something
like FILTER /$%name%/ which would match all records starting with value
contained in the name parameter.

Steve

Stephen Lime
Data & Applications Manager

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

>>> "Pedro A. Carrasco" <pcarrasco at iver.es> 07/30/02 07:07AM >>>
Hi all,
I'm making a query to de map file using the cgi paramenters, the URL
is:

http://213.172.37.190/scripts/mapserv.exe?map=c:/Cartografia/mapa/spain.map&

mode=itemnquery&qlayer=buspobqr&name=Sitges

I'm trying to find Sitges and it find it, but, How can I made it to
found
for example all the names that start in Sit?, the layer in the map file
is
defined like:

  layer
    name "buspobqr"
    data "medianas"
    status ON
    type query
    filteritem "NOMBRE"
    filter "%name%"
    class
      template "buspobs.xml"
    end

and the template is:

<nombre>[NOMBRE]</nombre>
<mapa>[img]</mapa>

Thanks in advance.
Regards.
---------------------------------------------------------------------
Pedro A. Carrasco Ponce
IVER Sistemas de Información Geográfica
Dpto. Técnico
C/Salamanca, 50
46005 Valencia
Telf: +34 96 316 34 00
Fax: +34 96 316 2716
mail : pcarrasco at iver.es 
web : http://www.iver.es 
---------------------------------------------------------------------






More information about the mapserver-users mailing list