[mapserver-users] A question

Jim Burnett jimburnett at ntelos.net
Tue Jan 29 10:56:22 EST 2002


you are correct




----- Original Message -----
From: "Obe, Regina DND\MIS" <Regina.Obe.PFD at ci.boston.ma.us>
To: "'Nacho Benito'" <nachobenito75 at hotmail.com>;
<mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, January 29, 2002 8:43 AM
Subject: RE: [mapserver-users] A question


> I don't think dbf field names are allowed to have spaces in them.  If
> somehow you got your field name to have a space in it, I would change it
> from LAKE NAME to LAKE_NAME.
>
> -----Original Message-----
> From: Nacho Benito [mailto:nachobenito75 at hotmail.com]
> Sent: Tuesday, January 29, 2002 7:19 AM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] A question
>
>
> 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