SWIG Mapscript

Daniel Morissette dmorissette at DMSOLUTIONS.CA
Wed Sep 29 17:20:40 EDT 2004


Ryan, Adam wrote:
>>
>>Sorry, meant to say that I've *never* used the PHP mapscript
>>and don't understand the use for saving and loading queries.
>>
>>Sean
>>
>
>
> Hey, thanks for the reply.
>
> Am I the only one using saveQuery?  I think saveQuery and loadQuery are
> terrific methods.  They generate/read small files of shape index values -
> similar, to a bitmap in Avenue I think.  By loading a saved query, I can
> return a layer to a previous query 'state', for lack of a better word
> (resultCacheObj state?).  This is extremely useful.
>

PHP's loadQuery() and saveQuery() are just methods that expose the
functionality of the mapserv CGI's "SAVEQUERY" function. My
understanding is as Adam wrote, that they save and load the contents of
the result cache, to allow you to maintain the results of a query
highlighted on the map when you browse after a query.

Someone mentioned in this thread that changing the layer order would
break the saved query, and yes, I believe that's true. It's up to the
application code to not prevent that from happening.

Daniel
--
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-users mailing list