<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Upgrade to MapServer 5.0.2 from 4.8.1: extent/scale calculation changes?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">For a given map file, the final extent and scale calculations are different between the two versions!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">For the same mapfile &quot;105.map&quot; with:</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">EXTENT -2750564.75 -936638.5 3583872.5 4673125</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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 COLOR="#0000FF" SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">-2750564.750000 -943773.286215 3583872.500000 4680259.786215</FONT>

<BR><FONT SIZE=2 FACE="Arial">41953025.267029</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">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 COLOR="#0000FF" SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">-2750564.750000 -942941.431206 3583872.500000 4679427.931206</FONT>

<BR><FONT SIZE=2 FACE="Arial">42051275.911682</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">Help?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Jean-François Doyon</FONT>

<BR><FONT SIZE=2 FACE="Arial">Data Dissemination Division | Division de la diffusion des données</FONT>

<BR><FONT SIZE=2 FACE="Arial">Data Management and Dissemination Branch | Direction de la gestion et de la diffusion des données</FONT>

<BR><FONT SIZE=2 FACE="Arial">Earth Sciences Sector | Secteur des sciences de la Terre</FONT>

<BR><FONT SIZE=2 FACE="Arial">Natural Resources Canada | Ressources naturelles Canada</FONT>

<BR><FONT SIZE=2 FACE="Arial">Ottawa, Canada K1A 0E9</FONT>

<BR><FONT SIZE=2 FACE="Arial">jdoyon@nrcan-rncan.gc.ca</FONT>

<BR><FONT SIZE=2 FACE="Arial">Telephone | Téléphone 613-992-4902</FONT>

<BR><FONT SIZE=2 FACE="Arial">Facsimile | Télécopieur 613-947-2410</FONT>

<BR><FONT SIZE=2 FACE="Arial">Teletypewriter | Téléimprimeur 613-996-4397</FONT>

<BR><FONT SIZE=2 FACE="Arial">Government of Canada | Gouvernement du Canada</FONT>
</P>

</BODY>
</HTML>