[Mapserver-users] limiting query results

Ryan, Adam ARyan at co.linn.or.us
Thu Mar 13 14:52:30 EST 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2E99A.14F74520
Content-Type: text/plain;
	charset="iso-8859-1"


I'm already doing this to some extent, but a box in the rural areas may
return a couple dozen properties, where the same box at the same scale in an
urban area bogs down.

Adam

-----Original Message-----
From: Fawcett, David [mailto:David.Fawcett at state.mn.us]
Sent: Thursday, March 13, 2003 11:32 AM
To: mapserver-users at lists.gis.umn.edu; 'Ryan, Adam'
Subject: RE: [Mapserver-users] limiting query results


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 
> 
> 
> 

------_=_NextPart_001_01C2E99A.14F74520
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Mapserver-users] limiting query results</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=3D2>I'm already doing this to some extent, but a box in =
the rural areas may return a couple dozen properties, where the same =
box at the same scale in an urban area bogs down.</FONT></P>

<P><FONT SIZE=3D2>Adam</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Fawcett, David [<A =
HREF=3D"mailto:David.Fawcett at state.mn.us">mailto:David.Fawcett at state.mn.=
us</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Thursday, March 13, 2003 11:32 AM</FONT>
<BR><FONT SIZE=3D2>To: mapserver-users at lists.gis.umn.edu; 'Ryan, =
Adam'</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Mapserver-users] limiting query =
results</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>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.&nbsp;&nbsp; </FONT></P>

<P><FONT SIZE=3D2>I am sure that there is a more elegant solution, but =
this could prevent the crash you are describing. </FONT>
</P>

<P><FONT SIZE=3D2>David.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>David J. Fawcett</FONT>
<BR><FONT SIZE=3D2>GIS / Databases</FONT>
</P>

<P><FONT SIZE=3D2>MN Office of Environmental Assistance</FONT>
<BR><FONT SIZE=3D2>520 Lafayette Rd N</FONT>
<BR><FONT SIZE=3D2>St. Paul, MN 55155</FONT>
<BR><FONT SIZE=3D2>651.215.0200</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>&gt; ----------</FONT>
<BR><FONT SIZE=3D2>&gt; From: =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ryan, =
Adam[SMTP:ARyan at co.linn.or.us]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thursday, March 13, 2003 =
1:02 PM</FONT>
<BR><FONT SIZE=3D2>&gt; To: &nbsp; =
mapserver-users at lists.gis.umn.edu</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: &nbsp;&nbsp;&nbsp;&nbsp; =
[Mapserver-users] limiting query results</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Dear List, </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I'm resending this because I can't find a cgi =
(not mapscript) solution. </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; 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.&nbsp; If the user makes a box around the whole =
county, or searches by [STREETNAME] =3D~ /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.</FONT></P>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; 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.</FONT></P>

<P><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I can't use MAXFEATURES because that limits the =
number of records that are searched, not the number returned. </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Any ideas? </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Adam Ryan </FONT>
<BR><FONT SIZE=3D2>&gt; Linn County </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2E99A.14F74520--



More information about the mapserver-users mailing list