[Mapserver-users] limiting query results

Fawcett, David David.Fawcett at state.mn.us
Thu Mar 13 11:32:02 PST 2003


For the instance of the user selecting the whole county with the box, could you use scale-dependent layers so they don't have the option to query the whole county.   

I am sure that there is a more elegant solution, but this could prevent the crash you are describing. 

David.


David J. Fawcett
GIS / Databases

MN Office of Environmental Assistance
520 Lafayette Rd N
St. Paul, MN 55155
651.215.0200


> ----------
> From: 	Ryan, Adam[SMTP:ARyan at co.linn.or.us]
> Sent: 	Thursday, March 13, 2003 1:02 PM
> To: 	mapserver-users at lists.gis.umn.edu
> Subject: 	[Mapserver-users] limiting query results
> 
> 
> Dear List, 
> 
> I'm resending this because I can't find a cgi (not mapscript) solution. 
> 
> I want to limit the number of records returned by an NQUERY or and ITEMNQUERY, or the number of times mapserv sends the layer template.  If the user makes a box around the whole county, or searches by [STREETNAME] =~ /ST/, for example, mapserv easily and quickly renders the image, but then spits out the layer template many thousands of times and ultimately crashes the browser.
> 
> I can monitor the [rn] and take steps using javascript, but I can't stop mapserv from spitting out all the instances of the template.
> 
> I can't use MAXFEATURES because that limits the number of records that are searched, not the number returned. 
> 
> Any ideas? 
> 
> Adam Ryan 
> Linn County 
> 
> 
> 



More information about the MapServer-users mailing list