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's zoomscale function does not seem to deal correctly with this new change:
<br><br>from Chameleon's map_navigator:<br><br>        // call the zoomscale function<br>        echo $nScale;<br>        $this->oSession->oMap->zoomscale($nScale, $oPixelPos,<br>          $this->oSession->oMap->width, $this->oSession->oMap->height, $oRect);
<br>        echo '<br/>'.$this->moMapObject->oMap->scale;<br><br><br>will output:<br><br>4278<br/>4287.52783964<br><br>Best regards,<br>Bart<br><br>