Queries
Pericles S. Nacionales
nacional at CBS.UMN.EDU
Thu Jun 23 13:36:01 PDT 2005
Peter,
Check http://terrasip.gis.umn.edu/projects/tutorial/section3.html and
look at the map and template files for each example. I'm currently in
the process of updating the tutorial and it will make more sense when
I'm done... perhaps in the next two weeks.
Anyway, to setup a non-spatial query in MapServer (generating maps is a
form of query too!) you need to define a query template in each layer to
be queried. In addition, you might also want to define a header and
footer for each of the layer. Attached you will find the relevant
template files and a mapfile. Open the mapfile and have a look at the
layer named cities_poly and also the web object--that's where all the
query-related parameters are defined.
As for the interface, I don't know about Chameleon but in the MapServer
CGI world you invoke queries by changing the mode to query or nquery. I
suspect it would be the same thing with PHP/MapScript.
Good luck!
-Perry
Peter Kingsbury wrote:
> Hello list,
>
> I have been reading through various documentation for some time, on how to
> accomplish simple queries with the data set I have, on the Chameleon site I
> have in place.
>
> At this point, I am not sure which of the sites, documents, or manuals will
> lead me to my goal; may I request a pointer to a useful document which will
> describe how to setup the initial environment to enable querying?
>
> I apologize if this is vague, however I am just beginning to scratch the
> surface, hence I am reading as much as I can on the subject!
>
> Much thanks,
> - Peter
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050623/d3bb526e/attachment.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050623/d3bb526e/attachment-0001.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050623/d3bb526e/attachment-0002.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050623/d3bb526e/attachment-0003.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050623/d3bb526e/attachment-0004.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: example3-3.map
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050623/d3bb526e/attachment.ksh>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050623/d3bb526e/attachment-0005.html>
More information about the MapServer-users
mailing list