<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Upgrade to MapServer 5.0.2 from 4.8.1: extent/scale calculation changes?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2>G'day y'all ...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2>Posted this to the user's list but had no luck ... 
anyone?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2>We might have to delay upgrade to 5 and AGG by months if 
there are indeed undocumented changes to the way scale is calculated 
:(</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=509475421-05022008><FONT face=Arial 
color=#0000ff size=2>J.F.</FONT></SPAN></DIV><BR>
<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>Doyon, 
Jean-Francois<BR><B>Sent:</B> February 4, 2008 10:12<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] Upgrade 
to MapServer 5.0.2 from 4.8.1: extent/scale calculation 
changes?<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hello,</FONT> </P>
<P><FONT face=Arial size=2>Although all the cartographic testing has been done, 
I just tested for the first time upgrading 4.8.1 to 5.0.2 with my JavaScript 
mapping UI, and have discovered something troubling:</FONT></P>
<P><FONT face=Arial size=2>For a given map file, the final extent and scale 
calculations are different between the two versions!</FONT> </P>
<P><FONT face=Arial size=2>For the same mapfile "105.map" with:</FONT> </P>
<P><FONT face="Courier New" size=2>EXTENT -2750564.75 -936638.5 3583872.5 
4673125</FONT> </P>
<P><FONT face=Arial size=2>With 4.8.1:</FONT> </P>
<P><A 
href="http://atlas.nrcan.gc.ca/cgi-bin/mapserv?map=/home/atlas/mapdata/english/105.map&amp;map_web_template=/home/atlas/mapdata/to_zope_new.html&amp;mapsize=428+380&amp;map_scalebar_imagecolor=255+255+255"><U><FONT 
face=Arial color=#0000ff 
size=2>http://atlas.nrcan.gc.ca/cgi-bin/mapserv?map=/home/atlas/mapdata/english/105.map&amp;map_web_template=/home/atlas/mapdata/to_zope_new.html&amp;mapsize=428+380&amp;map_scalebar_imagecolor=255+255+255</FONT></U></A></P>
<P><FONT face=Arial size=2>-2750564.750000 -943773.286215 3583872.500000 
4680259.786215</FONT> <BR><FONT face=Arial size=2>41953025.267029</FONT> 
</P><BR>
<P><FONT face=Arial size=2>With 5.0.2:</FONT> </P>
<P><A 
href="http://dev.atlas.gc.ca/cgi-bin/mapserv502atlas?map=/home/atlas/mapdata/english/105.map&amp;map.web=TEMPLATE+/home/atlas/mapdata/to_zope_new.html&amp;mapsize=428+380&amp;map.scalebar=COLOR+255+255+255"><U><FONT 
face=Arial color=#0000ff 
size=2>http://dev.atlas.gc.ca/cgi-bin/mapserv502atlas?map=/home/atlas/mapdata/english/105.map&amp;map.web=TEMPLATE+/home/atlas/mapdata/to_zope_new.html&amp;mapsize=428+380&amp;map.scalebar=COLOR+255+255+255</FONT></U></A></P>
<P><FONT face=Arial size=2>-2750564.750000 -942941.431206 3583872.500000 
4679427.931206</FONT> <BR><FONT face=Arial size=2>42051275.911682</FONT> </P>
<P><FONT face=Arial size=2>That scale change is big enough to break all our 
min/max scale ranges and so on :( (on hundreds of mapfiles)</FONT> </P>
<P><FONT face=Arial size=2>I've looked through HISTORY.TXT and the Migration 
Guide but am not seeing anything about this (All I saw was a change in scale 
calculation for PHP?)</FONT></P>
<P><FONT face=Arial size=2>Help?</FONT> </P>
<P><FONT face=Arial size=2>Jean-François Doyon</FONT> <BR><FONT face=Arial 
size=2>Data Dissemination Division | Division de la diffusion des données</FONT> 
<BR><FONT face=Arial size=2>Data Management and Dissemination Branch | Direction 
de la gestion et de la diffusion des données</FONT> <BR><FONT face=Arial 
size=2>Earth Sciences Sector | Secteur des sciences de la Terre</FONT> <BR><FONT 
face=Arial size=2>Natural Resources Canada | Ressources naturelles Canada</FONT> 
<BR><FONT face=Arial size=2>Ottawa, Canada K1A 0E9</FONT> <BR><FONT face=Arial 
size=2>jdoyon@nrcan-rncan.gc.ca</FONT> <BR><FONT face=Arial size=2>Telephone | 
Téléphone 613-992-4902</FONT> <BR><FONT face=Arial size=2>Facsimile | 
Télécopieur 613-947-2410</FONT> <BR><FONT face=Arial size=2>Teletypewriter | 
Téléimprimeur 613-996-4397</FONT> <BR><FONT face=Arial size=2>Government of 
Canada | Gouvernement du Canada</FONT> </P></BODY></HTML>