[Mapserver-dev] loadquery/savequery

Yewondwossen Assefa assefa at dmsolutions.ca
Fri Sep 24 11:37:27 EDT 2004


Paul,

  The save and load query functions use the layer index for refernece so 
you could end up with problems if the map has changed between the save 
and the load.
  Quickly checking the code, It shoudl not be difficult to do the 
save/load on a specific layer (as an option) instead of the whole map.

Later,

Paul Spencer wrote:

> Hi,
> 
> Chameleon uses a session management technique that preserves changes to 
> the mapfile structure by saving/loading the map object between page 
> submits.  I recently added use of the saveQuery and loadQuery functions 
> to several operations in Chameleon (like persistent queries and the 
> region of interest tools) and I am concerned about the effect that 
> modifications to the layers in the map file might have on saved queries. 
>  Specifically I am wondering about how saveQuery/loadQuery will work 
> when the layers are added/removed/promoted/demoted ... will this 
> invalidate the saved query?  Or does the saveQuery know more about the 
> layer than its order?  Would it be possible to extend save/load query to 
> the layer level?
> 
> Cheers,
> 
> Paul


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------





More information about the mapserver-dev mailing list