[mapserver-users] A question
Nacho Benito
nachobenito75 at hotmail.com
Tue Jan 29 04:18:50 PST 2002
Hi everybody
I'm trying to do a query to a .dbf file and I don't know what I'm doing
wrong
Could you please help me?
Here you have the code I'm using:
MAP FILE (ejem3.map)
--------
MAP
NAME EJ3
SHAPEPATH "/ms_datos"
LAYER
NAME "lakes"
DATA lakespy2
STATUS ON
TYPE POLYGON
QUERY
TEMPLATE ejem3.html
END
END
END
*****************
Call mapserv File
-----------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//DE">
<HTML>
<HEAD>
<TITLE>Hello</TITLE>
</HEAD>
<BODY scrolling="no">
<FORM method="GET" action="/cgi-bin/mapserv">
<input type="hidden" name="map" value="/mapfiles/ejem3.map">
<input type="hidden" name="mode" value="itemquery">
<input type="hidden" name="item" value="lake name">
<select name="value" size="1">
<option>WAGNER
<option> 2
<option> 3
<option> 4
<option> 5
<option> 6
<option> 7
<option> 8
<option> 9
<option> 10
</select>
<input type="submit" value="Go!">
</FORM>
</BODY>
</HTML>
*************
Template file
-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//DE">
<HTML>
<HEAD>
<TITLE>Hello</TITLE>
</HEAD>
<BODY scrolling="no">
Layer: [LAKE NAME]
</BODY>
</HTML>
LAKE NAME is a field of .dbf file
The mistake is: loadLayer(): Unknown identifier. (QUERY):(9)
Thank's
_________________________________________________________________
Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es
More information about the MapServer-users
mailing list