<!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? i have a
final image that has a 4:3 ratio, and does the setExtent function automatically
account for the image dimensions? 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> </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> </DIV>
<DIV dir=ltr align=left><SPAN class=993322821-26112007><FONT face="Courier New"
color=#0000ff>$map->setExtent(-1,-1,1,1);<BR>echo "<pre>final extent
is: "; print_r( $map->extent ); echo
"</pre><br>\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> </DIV>
<DIV><FONT face="Courier New" color=#0000ff></FONT> </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> </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> </DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New" color=#0000ff><PRE>final extent is: ms_rect_obj Object
(
[_handle_] => Resource id #7
[minx] => -1.33333333333
[miny] => -1
[maxx] => 1.33333333333
[maxy] => 1
)</PRE></FONT></SPAN></DIV>
<DIV><SPAN class=993322821-26112007><FONT face="Courier New"
color=#0000ff></FONT></SPAN> </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> </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> </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> </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> </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. I cannot find an error -- can someone look at it?
Here's the relevant code:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN
class=771181821-26112007></SPAN></FONT> </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> </DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007>echo
"<pre>buf_max_extent is: "; print_r( $buf_max_extent ); echo
"</pre><br>\n";<BR>$map->setExtent($buf_max_extent[1],$buf_max_extent[2],$buf_max_extent[3],$buf_max_extent[4]);<BR>echo
"<pre>final extent is: "; print_r( $map->extent ); echo
"</pre><br>\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> </DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT> </DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT> </DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT> </DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT> </DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT> </DIV>
<DIV align=left><FONT face="Courier New" color=#800000>
<DIV><FONT face="Courier New" color=#800000><SPAN
class=771181821-26112007>=== HTTP Output ===</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#800000><SPAN class=771181821-26112007><PRE>buf_max_extent is: Array
(
[1] => 490059.61375
[2] => 5163285.525
[3] => 764351.51125
[4] => 5388702.975
)
</PRE><BR><PRE>final extent is: ms_rect_obj Object
(
[_handle_] => Resource id #7
[minx] => 476927.2625
[miny] => 5163285.525
[maxx] => 777483.8625
[maxy] => 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> </DIV></FONT></DIV>
<DIV align=left><FONT face="Courier New" color=#800000></FONT> </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> </DIV></BODY></HTML>