How can I highlight more than one feature in QUERY mode?

Daniele Margotti margottid at COMUNE.LUGO.RA.IT
Fri May 27 04:20:06 EDT 2005


You are right: googling the web I did find using of ITEMNQUERYMAP
combined with an expression for QSTRING.

But as you can see in the following example, I need to manually specify
"mapxy" and "scale" parameters to see something highlighted:

http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquerymap
<http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquerymap&map_que
rymap_size=500%20375&mapxy=1729487.0255+4927174.2505&scale=2000&map=/dat
i/sit/Lugo_PRG.map&mapsize=&layer=CTR_5000&layer=Mappali&layer=Quadrocat
asto&layer=Grafo_stradale&qlayer=Mappali&qitem=PARTKEY&qstring=('[PARTKE
Y]'%20in%20'E730%20%20%2077%20%20427,E730%20%20%2077%20%20428,E730%20%20
%2077%20%20266'>
&map_querymap_size=500%20375&mapxy=1729487.0255+4927174.2505&scale=2000&
map=/dati/sit/Lugo_PRG.map&mapsize=&layer=CTR_5000&layer=Mappali&layer=Q
uadrocatasto&layer=Grafo_stradale&qlayer=Mappali&qitem=PARTKEY&qstring=(
'[PARTKEY]'%20in%20'E730%20%20%2077%20%20427,E730%20%20%2077%20%20428,E7
30%20%20%2077%20%20266')

If I omit center point and scale factor, I see the ENTIRE map (and I
don't want it!) instead of a map automatically centered and zoomed to
enclose all queried features:

http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquerymap
<http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquerymap&map_que
rymap_size=500%20375&map=/dati/sit/Lugo_PRG.map&mapsize=&layer=CTR_5000&
layer=Mappali&layer=Quadrocatasto&layer=Grafo_stradale&qlayer=Mappali&qi
tem=PARTKEY&qstring=('[PARTKEY]'%20in%20'E730%20%20%2077%20%20427,E730%2
0%20%2077%20%20428,E730%20%20%2077%20%20266'>
&map_querymap_size=500%20375&map=/dati/sit/Lugo_PRG.map&mapsize=&layer=C
TR_5000&layer=Mappali&layer=Quadrocatasto&layer=Grafo_stradale&qlayer=Ma
ppali&qitem=PARTKEY&qstring=('[PARTKEY]'%20in%20'E730%20%20%2077%20%2042
7,E730%20%20%2077%20%20428,E730%20%20%2077%20%20266')

What do I miss?

    Daniele


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Fawcett, David
Sent: Monday, May 23, 2005 7:04 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] How can I highlight more than one
feature in QUERY mode?


Should that be ITEMNQUERYMAP?


David Fawcett
Minnesota Office of Environmental Assistance
david.fawcett at moea.state.mn.us
651.215.0200

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Daniele Margotti
Sent: Saturday, May 21, 2005 3:51 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] How can I highlight more than one feature
in QUERY mode?


Hi list,
with CGI mode=ITEMQUERYMAP I can produce a map with one highlighted
feature (defined using QITEM, QLAYER and QSTRING).

How can I highlight more than one feature (within the same layer) using
the same syntax (QITEM + QLAYER + QSTRING)?
Is there the possibility to use an "OR condition" or a regular
expression in QSTRING parameter?

Thank you,
    Daniele


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050527/56f6d82a/attachment.html


More information about the mapserver-users mailing list