[mapserver-users] itemquery in version 3.5 (FWD)
Brian Fischer
bfischer at mpls.houstoneng.com
Wed Apr 10 14:38:02 PDT 2002
Lawrence,
I just went through this same issue upgrading one of my applications to
version 3.5.
You need to add in the &qlayer=layername&map_layername_filter=itemname
=,>,<,etc. value in the URL
Also make sure you have the filteritem defined in the layer you are
querying.
Also see message:
http://mapserver.gis.umn.edu/wilma/mapserver-users/0202/msg00184.html
Hope this helps,
Brian
-----Original Message-----
From: Thomas E. Burk [mailto:teb at mallit.fr.umn.edu]
Sent: Wednesday, April 10, 2002 3:20 PM
To: mapserver-users at lists.gis.umn.edu
Cc: llionte at yahoo.com; pnaciona at gis.umn.edu
Subject: [mapserver-users] itemquery in version 3.5 (FWD)
------------- Begin Forwarded Message -------------
Date: Wed, 10 Apr 2002 02:17:55 -0700 (PDT)
From: laurentiu lionte <llionte at yahoo.com>
Subject: itemquery in version 3.5
To: mapserver-info at lists.gis.umn.edu
MIME-Version: 1.0
I have an web application using MapServer version 3.11.
I've tryed to upgrade to MapServer 3.5 but itemquery does not work
at all.
Example 3 for itemquery in MapServer test suite uses version 3.11.
I've modified the map file by removing QUERY and moving template
in CLASS body.
Following message appears: "msQueryByAttributes(): Query error.
Requested layer has no filter defined. "
Could anyone make
http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html
to work under 3.5 version ??
my map file looks like this:
NAME locadr
SIZE 600 500
FONTSET fonts/fonts.list
SHAPEPATH "data"
SIZE 384 401
EXTENT -2475.0 280.0 20000.0 16546.0
WEB
IMAGEPATH "../tmp/"
IMAGEURL "/~laur/tmp/"
END
QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 255 0
END
REFERENCE
STATUS ON
IMAGE graphics/iasiref.png
SIZE 314 213 EXTENT 9000.00 9000.00 10000.00 10000.00
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
LAYER
NAME "clcar"
DATA clcar
STATUS ON
TYPE POLYGON
CLASS
NAME "cladiri"
OUTLINECOLOR 194 193 101
SIZE 4
COLOR 0 0 155
END # end of class object
END # end of layer object
LAYER
NAME "carosabil"
DATA carosabil
STATUS OFF
TYPE POLYGON
CLASS
NAME "carosabil"
OUTLINECOLOR 131 130 129
SIZE 4
COLOR 222 221 221
END # end of class object
END # end of layer object
LAYER
NAME "adrese"
DATA adrese
# FILTER "cod eq ^[cod]$"
STATUS OFF
TYPE POINT
CLASS
NAME "adrese"
SYMBOL 'circle'
MINSIZE 4
MAXSIZE 10
SIZE 7
COLOR 43 14 114
OUTLINECOLOR 220 43 25
TEMPLATE "findadr_template.html"
END # end of class object
END
END
thank you in advance
L.Lawrence
---------------------------------
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
------------- End Forwarded Message -------------
More information about the MapServer-users
mailing list