I am doing a spatial query of a polygon layer. The query that I have working is a line layer but I don't think it has anything to do with that.

my Layer is defined thusly ...

  LAYER
  NAME landsat_4
  TYPE POLYGON
  DATA landsat_4
  STATUS ON
    CLASSITEM LOCATION
    CLASS
      NAME "Landsat Data"
      STYLE
        COLOR 40 40 200
      END
      STYLE
        OUTLINECOLOR 0 0 0
        WIDTH 1
        ANTIALIAS TRUE
      END
    END
    TEMPLATE "templates/landsat_4.html"
  END

and the template (templates/landsat_4.html) looks like this ...

<table border="2" cellspacing="2" cellpadding="2">
<tr><td>File Name</td><td>Imagery Source</td><td>Path</td><td>Row</td><td>Projection</td><td>Datum</td><td>Image Date</td></tr>
<tr><td>[LOCATION]</td><td>[SOURCE]</td><td>[PATH]</td><td>[ROW]</td><td>[PROJ]</td><td>[DATUM]</td><td>[IMGDATE]</td></table>

All the fields occur in the layer "landsat_4.shp" just as they appear in the html template.

+++++++++++++++++++++++++++++++++++++++++++

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:[EMAIL PROTECTED] On
Behalf Of John B. Churchill
Sent: Friday, January 12, 2007 9:19 AM
To: [email protected]
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.

J.B.

--
---------------------------------------------
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                    



--
---------------------------------------------
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                    

Reply via email to