thanks Tamas, I will give it a try.<br><br>Best Regards<br><br>Zhonghai<br><br><div><span class="gmail_quote">On 8/9/07, <b class="gmail_sendername">Tamas Szekeres</b> &lt;<a href="mailto:szekerest@gmail.com">szekerest@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Zhonghai,<br><br>The method should adjust the extent of the rectangle so as to fit in
<br>the given image window. Returns cellsize of the output image.<br><br>The actual implementation resides in msAdjustExtent (maputil.c)<br><br>Best regards,<br><br>Tamas<br><br><br><br>2007/8/9, Zhonghai Wang &lt;<a href="mailto:zhonghaiw@gmail.com">
zhonghaiw@gmail.com</a>&gt;:<br>&gt;&nbsp;&nbsp;besides, how is the function &quot;fit(integer, integer) as double&quot; working?<br>&gt;<br>&gt; Cheers<br>&gt;<br>&gt; Zhonghai<br>&gt;<br>&gt;<br>&gt; On 8/9/07, Zhonghai Wang &lt;
<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi Tamas,<br>&gt; &gt;<br>&gt; &gt; thanks for your information. Seems that we must still suffer it. If we are<br>&gt; really going to do something in 
5.2 release, i propose that we should<br>&gt; separate the rectObj into pixRectObj and geoRectObj. This may do what we<br>&gt; need.<br>&gt; &gt;<br>&gt; &gt; Best Regards<br>&gt; &gt;<br>&gt; &gt; Zhonghai<br>&gt; &gt;<br>
&gt; &gt;<br>&gt; &gt; On 8/9/07, Tamas Szekeres &lt;<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a> &gt; wrote:<br>&gt; &gt; &gt; Zhonghai,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; We have a bunch of tickets on this issue especially regarding to the
<br>&gt; &gt; &gt; zoomRectangle function. On one day it have been corrected that maxy is<br>&gt; &gt; &gt; greater that miny but on the other day it have been reverted due to<br>&gt; &gt; &gt; some other reasons:<br>&gt; &gt; &gt; For more information see:
<br>&gt; &gt; &gt; <a href="http://trac.osgeo.org/mapserver/ticket/1982">http://trac.osgeo.org/mapserver/ticket/1982</a><br>&gt; &gt; &gt; <a href="http://trac.osgeo.org/mapserver/ticket/1988">http://trac.osgeo.org/mapserver/ticket/1988
</a><br>&gt; &gt; &gt; <a href="http://trac.osgeo.org/mapserver/ticket/1817">http://trac.osgeo.org/mapserver/ticket/1817</a><br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I personally would support having maxy greater than miny, but it seems
<br>&gt; &gt; &gt; to be applied only for the 5.2 release.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Best regards,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Tamas<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; 2007/8/8, Zhonghai Wang &lt; 
<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>&gt;:<br>&gt; &gt; &gt; &gt; Hi folks,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I am using now the latest beta version MapServer C# wrapper. I<br>&gt; remember that
<br>&gt; &gt; &gt; &gt; creating an image rectangle object with the old version wrapper, it<br>&gt; should<br>&gt; &gt; &gt; &gt; be done like because of the screen coordinate system:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Dim&nbsp;&nbsp;tempRect As New rectObj(intMinX, intMinY, intMaxX, intMaxY, 0)
<br>&gt; &gt; &gt; &gt; Dim t As Integer = 0<br>&gt; &gt; &gt; &gt; Dim tc As Integer = 0<br>&gt; &gt; &gt; &gt; t = tempRect.miny<br>&gt; &gt; &gt; &gt; tempRect.miny = tempRect.maxy<br>&gt; &gt; &gt; &gt; tempRect.maxy = t
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Is this situation changed in the latest beta version?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; besides, i noticed that there is a fit(integer, integer) as double<br>&gt; method,
<br>&gt; &gt; &gt; &gt; I&#39;ve tried to get the idea of this method in mailing list, but i<br>&gt; didn&#39;t get<br>&gt; &gt; &gt; &gt; it.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Could anyone you guys give me some hints?
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Cheers<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Zhonghai<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br></blockquote></div><br>