[Mapserver-users] Re: FW: SaveQuery & Queryfile

Richard Greenwood rich at greenwoodmap.com
Tue Feb 24 06:57:48 PST 2004


Werner du Plessis wrote:

> Hi Richard, 
> 
> That is how I have it setup. The query executes and find the features. Now I want to zoom in twice for example, with the first click the query persists, zoom's closer and retains my selected features. On the second click I get the following error:
> 
> msLoadQuery(): Unable to access file. (c:/inetpub/wwwroot/tmp/map.map10776342052696.qy) 

map.map in the line above does not look correct. Your query file name is 
getting thrashed.

> 
> Any idea's?
> 
> Regards
> Werner
> 
> 
> -----Original Message-----
> From: Richard Greenwood [mailto:rich at greenwoodmap.com]
> Sent: Tuesday, February 24, 2004 4:39 PM
> To: Werner du Plessis; mapserver-users at lists.gis.umn.edu
> Subject: Re: FW: SaveQuery & Queryfile
> 
> 
> Werner du Plessis wrote:
> 
>>Hi Richard, 
>>
>>I see from a posting on mapservers user forum that you have had a similar problem. My query results are also persistent only for the first interaction on the map after the query results are displayed. After that I get the error: msLoadQuery(): Unable to access file.
> 
> 
> 1. When you execute the query, you must set savequery=true. Mapserver 
> will then create a .qy file. Check in your tmp directory to see if the 
> .qy file has been created.
> 
> 2. You must get the name of the query file from mapserver. Something 
> like the following will work:
>     <input type='hidden' name='queryfile' value='[queryfile]'>
> 
> 3. With each subsequent form submission, be sure the name is passed back 
> to mapserver e.g.:
>     queryfile=tc10776330262312.qy
> (The above hidden form variable will do this)
> 


-- 
Richard Greenwood
www.greenwoodmap.com



More information about the MapServer-users mailing list