broken query (problem solved)

John B. Churchill jchurchill at AL.UMCES.EDU
Fri Jan 12 19:35:51 EST 2007


Upon further reflection I was able to figure out what the problem was. 
All the fields in my template were upper case.  Apparently case matters 
when naming the fields in the template html.

-------- Original Message --------
Subject: RE: [UMN_MAPSERVER-USERS] broken query
Date: Fri, 12 Jan 2007 09:27:23 -0600
From: Fawcett, David <David.Fawcett at state.mn.us>
To: John B. Churchill <jchurchill at AL.UMCES.EDU>

Are you doing a point query or an attribute query?

Posting relevant test from you map file and template would help people
diagnose the issue.

David.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of John B. Churchill
Sent: Friday, January 12, 2007 9:19 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] broken query


I'm still working on modifying the basic ITASCA DEMO.  I got some
queries to work in one application (returns data from the dbf table) but

they aren't working correctly in another (returns a table that looks
like the static template file without any data).

In both I have followed these steps:
1.  Created Templates in the "templates" folder named after the layer
and with the appropriate fields in square brackets [].
2.  put a statement in the MAP file at the end of the layer block that
refer to the html file in step 1 like so ...
TEMPLATE "templates/anti_bnd.html"

Are there other steps that I need to follow.  If so I must have done
them in the first case but forgot about them in the 2nd case.  Any help
on this is appreciated.

-- 
---------------------------------------------
John B. Churchill, M.S.			http://alx.al.umces.edu/~jchurch/
GIS Specialist				(301) 689-7109

University of Maryland Center for Environmental Science
Appalachian Laboratory			http://www.al.umces.edu/
Environmental Science Education		http://alese.al.umces.edu/

301 Braddock Road			
Frostburg, MD 21532			
FAX - (301) 689-7200			



More information about the mapserver-users mailing list