[Mapserver-users] savequery

Ryan, Adam ARyan at co.linn.or.us
Wed Mar 3 10:54:44 EST 2004


Steve,

You'll need to use the 'queryfile' CGI variable on any subsequent call using
mode browse or nquery.  Check out the Mapserver CGI Reference.

Adam 
 
-----Original Message-----
From: Steve McCrone [mailto:ms57 at streamyx.com] 
Sent: Wednesday, March 03, 2004 4:54 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] savequery


I'm using mapserver 4.0. I sue a javascript function to test finding a lake
- see my hidden values & function below.

I set the savequery="true", and the query file (eg.DEMO10783178743172.qy)
does get saved in the tmp directory. However, when I interact with my map
again, say "zoomout", the highlighted border around the lake polygon
dissapears. I wish to keep it there until the user clears it using a
javascript function.  Does it have anything to do with the MAP_IMAGETYPE?

Thanks,

Steve

function findLake(){

 document.mapserv.mode.value = "itemquery";
document.mapserv.savequery.value = "true";  document.mapserv.qlayer.value =
"LAKE_QUERY";  document.mapserv.qstring.value = "BOWSTRING";
document.mapserv.mapext.value = "shapes";  document.mapserv.buffer.value =
"1000";

 document.mapserv.submit();

}

<input type="hidden" name="imgxy" value="299.5 299.5">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="map" value="[map]">

<input type="hidden" name="mapext" value="">
<input type="hidden" name="qlayer" value="">
<input type="hidden" name="qitem" value="">
<input type="hidden" name="mode"  value="">
<input type="hidden" name="qstring" value="">
<input type="hidden" name="buffer" value="">
<input type="hidden" name="savequery" value="">


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list