Hi list,<br><br>I was surprised to get a different scale back in 5.0 than in 4.8. I tracked it down to the following difference in mapscale.c:<br><br>4.8.4:<br>md = width/(resolution*msInchesPerUnit(units, center_y)); /* was (width-1) */
<br><br>5.0:<br>md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* remember, we use a pixel-center to pixel-center extent, hence the width-1 */<br><br><br>But PHP/Mapscript&#39;s zoomscale function does not seem to deal correctly with this new change:
<br><br>from Chameleon&#39;s map_navigator:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // call the zoomscale function<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo $nScale;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;oSession-&gt;oMap-&gt;zoomscale($nScale, $oPixelPos,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;oSession-&gt;oMap-&gt;width, $this-&gt;oSession-&gt;oMap-&gt;height, $oRect);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &#39;&lt;br/&gt;&#39;.$this-&gt;moMapObject-&gt;oMap-&gt;scale;<br><br><br>will output:<br><br>4278&lt;br/&gt;4287.52783964<br><br>Best regards,<br>Bart<br><br>