<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html;">
<title>Scalix message content</title>
<style type="text/css">
<!--
.Normal {  text-align: left; text-indent:0pt; margin-top:0pt; margin-bottom:0pt; font-family: Arial; font-size: 12pt;}
.Default_Paragraph_Font {font-family: Arial; color: Black; background-color: white ; font-size: 12pt; font-weight: normal; font-style: normal; font-variant: normal; vertical-align: normal; text-decoration: none;}
div.ltTOCtitle { font-family: Verdana; font-size: 8pt; font-weight: bold; text-align: center;}
div.ltTOCl1 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:32pt; text-indent:-32pt;}
div.ltTOCl2 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:40pt; text-indent:-32pt;}
div.ltTOCl3 {  font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:48pt; text-indent:-32pt;}
div.ltTOCl4 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:56pt; text-indent:-32pt;}
div.ltTOCl5 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:64pt; text-indent:-32pt;}
div.ltTOCl6 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:72pt; text-indent:-32pt;}
-->
</style>
</head>

<body>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>Hi
everybody,</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>I
have some problems with zoomrectangle and minscale. I`ve set the minscale in the
WEB Object of my mapfile to 10.000</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>Now
I try to zoom in with zoomrectangle and this works fine untill a scale of
1:10.000. I'm using php mapscript 4.8.1</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>But
when I zoom to a scale bigger as 1:10.000 (eg 1:8000 it doesn't matter which
scale) zoomrectangle gives me back an extent for my</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>map
with a scale around 1:14.000.</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>Is
this the result which zoomrectangle should deliver in this case?</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>I
think if somebody zooms further into the map as minscale allows zoomrectangle
should deliver the minscale or am I wrong here.</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>For
example: We have an map with a scale of 1:11.000 now we try to zoom in by
rectangle to a scale like 1:9.000</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>This
is bigger like the minscale so zoomrectangle gives back the minscale 1:10.000
but not 1.14.000.</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>Here
is the example which I made to test zoomrectangle:</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>&lt;?</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>dl("php_mapscript.so-4.8.1");</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$map
= ms_newMapObj("path to my mapfile")</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>//this
extent delivers me a scale which is around 1:10.020</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$map-&gt;setextent(619108.26548362,237920.03039802,620891.73451638,239192.80280864);</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$geoext0=ms_newrectObj();</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$geoext0-&gt;setextent(619108.26548362,237920.03039802,620891.73451638,239192.80280864);</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$pix_minx
= 127;</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$pix_miny
= 63;</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$pix_maxx
= 551;</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$pix_maxy
= 379;</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$pixext
= ms_newrectObj();</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$pixext-&gt;setextent($pix_minx,$pix_miny,$pix_maxx,$pix_maxy);</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>//And
now zooming in</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$map-&gt;zoomrectangle($pixext,
675, 480, $geoext0);</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$pixext-&gt;free();</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$image=$map-&gt;draw();</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>//And
now my scale is somthing around 1:14.000</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>echo
$map-&gt;scale;</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>$image_url=$image-&gt;saveWebImage(MS_PNG,
0, 0, 0);</span></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>?&gt;</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>Maybe
somebody can help me if this is the normal behaviour of zoomrectangle. Btw I
think with zoompoint i have the same problems.</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>Thanks
in advance.</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>
<div class="Normal" style=' margin-left:18pt;'><span style='font-size: 10pt;'>Michael</span></div>
<div class="Normal" style=' margin-left:18pt;'><br></div>


</body>

</html>