<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff>umm... i think i *may* have answered my own question... does it 
have to do with the dimensions of the ouput image that is set?&nbsp; i have a 
final image that has a 4:3 ratio, and does the setExtent function automatically 
account for the image dimensions?&nbsp; It seems so, for when I do 
this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff>=== PHP code ===</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff>$map-&gt;setExtent(-1,-1,1,1);<BR>echo "&lt;pre&gt;final extent 
is: "; print_r( $map-&gt;extent ); echo 
"&lt;/pre&gt;&lt;br&gt;\n";<BR></DIV></FONT></SPAN><SPAN 
class=993322821-26112007><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff></FONT></SPAN></SPAN>
<DIV dir=ltr align=left><SPAN class=993322821-26112007><SPAN 
class=993322821-26112007><FONT face="Courier New" color=#0000ff>=== End PHP code 
===</FONT></SPAN></DIV>
<DIV></SPAN>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#0000ff></FONT>&nbsp;</DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" color=#0000ff>I 
get:</FONT></SPAN></DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" color=#0000ff>=== 
HTML Output ===</FONT></SPAN></DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" color=#0000ff><PRE>final extent is: ms_rect_obj Object
(
    [_handle_] =&gt; Resource id #7
    [minx] =&gt; -1.33333333333
    [miny] =&gt; -1
    [maxx] =&gt; 1.33333333333
    [maxy] =&gt; 1
)</PRE></FONT></SPAN></DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" color=#0000ff>=== 
End HTML Output ===</FONT></SPAN></DIV>
<DIV><FONT face="Courier New" color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#0000ff><SPAN class=993322821-26112007>Just 
threw me...</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff><SPAN 
class=993322821-26112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#0000ff><SPAN 
class=993322821-26112007>thanks,</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff><SPAN 
class=993322821-26112007>matt</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff></FONT>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Pettis, Matthew (TOC 
TGTI)<BR><B>Sent:</B> Monday, November 26, 2007 3:24 PM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] PHP 
Mapscript: Map extent not being set to what I am passing setExtent on my map 
object<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007>I am 
passing an extent to my map object to set it, but it is not being set to what I 
am telling it.&nbsp; I cannot find an error -- can someone look at it?&nbsp; 
Here's the relevant code:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007>=== 
PHP code ===</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007>echo 
"&lt;pre&gt;buf_max_extent is: "; print_r( $buf_max_extent ); echo 
"&lt;/pre&gt;&lt;br&gt;\n";<BR>$map-&gt;setExtent($buf_max_extent[1],$buf_max_extent[2],$buf_max_extent[3],$buf_max_extent[4]);<BR>echo 
"&lt;pre&gt;final extent is: "; print_r( $map-&gt;extent ); echo 
"&lt;/pre&gt;&lt;br&gt;\n";<BR></DIV></SPAN></FONT><FONT face="Courier New" 
color=#800000><SPAN class=771181821-26112007></SPAN></FONT>
<DIV><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007>=== 
End PHP code ===</SPAN></FONT></DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT>&nbsp;</DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT>&nbsp;</DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT>&nbsp;</DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT>&nbsp;</DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT>&nbsp;</DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT>&nbsp;</DIV>
<DIV align=left><FONT face="Courier New" color=#800000>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007>===&nbsp;HTTP Output&nbsp;===</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007><PRE>buf_max_extent is: Array
(
    [1] =&gt; 490059.61375
    [2] =&gt; 5163285.525
    [3] =&gt; 764351.51125
    [4] =&gt; 5388702.975
)
</PRE><BR><PRE>final extent is: ms_rect_obj Object
(
    [_handle_] =&gt; Resource id #7
    [minx] =&gt; 476927.2625
    [miny] =&gt; 5163285.525
    [maxx] =&gt; 777483.8625
    [maxy] =&gt; 5388702.975
)
</SPAN></FONT><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007>=== End HTTP Output ===</SPAN></FONT></PRE></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007>tia,</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007>matt</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN 
class=771181821-26112007></SPAN></FONT>&nbsp;</DIV></FONT></DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT>&nbsp;</DIV>
<DIV align=left>It is from the wellspring of our despair and the places that we 
are broken that we come to repair the world.</DIV>
<DIV align=left>-- Murray Waas</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>