[mapserver-users] itemquery in version 3.5 (FWD)
Thomas E. Burk
Thomas E. Burk" <teb@mallit.fr.umn.edu
Wed, 10 Apr 2002 15:20:27 -0500 (CDT)
--Ostentation_of_Peacocks_127_000
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: sTnMcvKRop11vVzfbShtLw==
------------- Begin Forwarded Message -------------
Date: Wed, 10 Apr 2002 02:17:55 -0700 (PDT)
From: laurentiu lionte <llionte@yahoo.com>
Subject: itemquery in version 3.5
To: mapserver-info@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 -------------
--Ostentation_of_Peacocks_127_000
Content-Type: TEXT/html; name=NoName; charset=us-ascii
Content-Description: NoName
Content-MD5: iZuIDW7NarLC11U23P8RWg==
<P>I have an web application using MapServer version 3.11.<BR>I've tryed to upgrade to MapServer 3.5 but itemquery does not work <BR>at all.<BR> Example 3 for itemquery in MapServer test suite uses version 3.11.<BR> I've modified the map file by removing QUERY and moving template <BR>in CLASS body.<BR>Following message appears: "msQueryByAttributes(): Query error. <BR>Requested layer has no filter defined. "<BR>Could anyone make <BR><A href="http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html" target=_blank>http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html</A> <BR>to work under 3.5 version ??<BR></P>
<P>my map file looks like this:</P><FONT face="Courier New" size=2>
<P>NAME locadr</P>
<P>SIZE 600 500</P></FONT><FONT face="Courier New" size=2>
<P>FONTSET fonts/fonts.list</P></FONT><FONT face="Courier New" size=2>
<P>SHAPEPATH "data"</P>
<P>SIZE 384 401</P>
<P>EXTENT -2475.0 280.0 20000.0 16546.0</P>
<P>WEB</P>
<P></FONT><FONT face="Courier New" size=2>IMAGEPATH "../tmp/"</P>
<P>IMAGEURL "/~laur/tmp/"</P></FONT><FONT face="Courier New" size=2>
<P>END</P>
<P>QUERYMAP</P>
<P>STATUS ON</P>
<P>STYLE HILITE</P>
<P>COLOR 255 255 0</P>
<P>END</P>
<P>REFERENCE</P>
<P>STATUS ON</P>
<P>IMAGE graphics/iasiref.png</P>
<P>SIZE 314 213 EXTENT 9000.00 9000.00 10000.00 10000.00</P>
<P>COLOR -1 -1 -1</P>
<P>OUTLINECOLOR 255 0 0</P>
<P>END </P></FONT><FONT face="Courier New" size=2>
<P>#</P>
<P># Start of symbol definitions (we're only using a few)</P>
<P>#</P>
<P>SYMBOL</P>
<P>NAME 'circle'</P>
<P>TYPE ELLIPSE</P>
<P>POINTS 1 1 END</P>
<P>FILLED TRUE</P>
<P>END</P></FONT><FONT face="Courier New" size=2>
<P>LAYER </P>
<P>NAME "clcar" </P>
<P>DATA clcar</P>
<P>STATUS ON</P>
<P>TYPE POLYGON </P>
<P>CLASS</P>
<P>NAME "cladiri" </P>
<P>OUTLINECOLOR 194 193 101</P>
<P>SIZE 4</P>
<P>COLOR 0 0 155 </P>
<P>END # end of class object</P>
<P>END # end of layer object</P>
<P>LAYER </P>
<P>NAME "carosabil" </P>
<P>DATA carosabil</P>
<P>STATUS OFF</P>
<P>TYPE POLYGON </P>
<P>CLASS</P>
<P>NAME "carosabil" </P>
<P>OUTLINECOLOR 131 130 129</P>
<P>SIZE 4</P>
<P>COLOR 222 221 221 </P>
<P>END # end of class object</P>
<P>END # end of layer object</P>
<P>LAYER</P>
<P>NAME "adrese" </P>
<P>DATA adrese</P>
<P># </FONT><FONT face="Courier New" size=2>FILTER </FONT><FONT face="Times New Roman"><FONT size=3>"cod eq ^[cod]$" </FONT></P></FONT><FONT face="Courier New" size=2>
<P>STATUS OFF</P>
<P>TYPE POINT</P>
<P>CLASS</P>
<P>NAME "adrese" </P>
<P>SYMBOL 'circle'</P>
<P>MINSIZE 4</P>
<P>MAXSIZE 10</P>
<P>SIZE 7</P>
<P>COLOR 43 14 114</P>
<P>OUTLINECOLOR 220 43 25</P></FONT><FONT face="Courier New" size=2>
<P>TEMPLATE "findadr_template.html"</P></FONT><FONT face="Courier New" size=2>
<P>END # end of class object</P>
<P>END</P>
<P>END </P></FONT>
<P>thank you in advance</P>
<P>L.Lawrence</P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="$rd_url/welcome/?http://taxes.yahoo.com/">Yahoo! Tax Center</a> - online filing with TurboTax
--Ostentation_of_Peacocks_127_000--