[mapserver-users] Help With Queries

Michael Mio mzm at imagecatinc.com
Fri Nov 8 16:12:08 EST 2002


Hi everyone. Well I got my page working with zooming, and panning, and
turning layers on and off. Many thanks to all that replied and helped me
out. Now I am having some trouble with doing some queries. I have been using
the Mapserver Demo as a reference and have been trying to follow that
example. However my page is not working the way the demo is. For the two
layers that I want to do queries on , I have three files. So for a raods
layer, I have roads.html, roads_header.html, and roads_footer.html. The
header file sets up the table I will use to store the information, the body
file has the field names I want returned, such as [Name] for the Name field,
and the footer just closes off the table I am storing the information in. I
also added a header and footer file for my main template. The header of that
returns coordinate information for my query and the footer returns two maps,
a standard querymap and a cached query map, which show the area I am
querying. So when I click on a road, it goes to the new page, and the
coordinate information comes up and the standard query map comes up. The
cached query map doesn't appear and when I look in the temp directory for
the qy file it is trying to access, it is there. Then for the information I
want returned, the table comes up, but for the answers, whatever I defined
in my roads.html is what shows up. So if I wanted the [Name] field to be
returned, [Name] shows up, and not the actual name of the road. Anyone have
any ideas or suggestions for this? I hope this email has been clear. Thank
you for your time.

***************
Michael Mio
ImageCat, Inc.




More information about the mapserver-users mailing list