<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm doing some R &amp; D for a system that is going 
need to produce as many as 40 maps per second for a busy web site.&nbsp; The 
mapdata is going come from either PostGIS or Oracle Spatial.&nbsp; Each map will 
be different and should immediately zoom to the full extent "defined" by one of 
the layers which will be a spatial query&nbsp;"defining"&nbsp;the results of the 
users request.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My question is about the best way of deriving that 
extent.&nbsp; I could (effectively) run the spatial query twice - once myself in 
PHP/MapScript (or whatever language is used to create the map) to get the extent 
(and hence set it "into" the MapServer request) and then MapServer itself will 
perform a very similar query to actually draw the map.&nbsp; As performance is 
of paramount importance i'd like to remove this "duplication" if at all 
possible.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I may be missing something obvious but is there an 
easy way to do this?&nbsp; Ideally i'd just like to specify that the map should 
always zoom to the extent "implied" by a particular layers 
features.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Many thanks for your thoughts,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Steve H<BR></FONT></DIV></BODY></HTML>