Hi,<br><br>I guess you&#39;ve run into  the problem reported in<br><a href="http://trac.osgeo.org/mapserver/ticket/1988">http://trac.osgeo.org/mapserver/ticket/1988</a><br><a href="http://trac.osgeo.org/mapserver/ticket/1817">http://trac.osgeo.org/mapserver/ticket/1817</a><br>
<br>and some other related tickets.<br><br>I&#39;m not sure why this issue haven&#39;t been addressed yet, seem you have to swap the miny and maxy values in the rectangle before passing to zoomRectangle right now.<br><br>
Best regards,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">2009/3/6 Ahmet Temiz <span dir="ltr">&lt;<a href="mailto:temiz@deprem.gov.tr">temiz@deprem.gov.tr</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hello<br>
<br>
I am using mapserver-java-mapscript.<br>
<br>
I am very confused about using zoomRectangle.<br>
<br>
I tried zoomRectangle in two ways. But I still have exception.<br>
<br>
here is the java code I tried and related exception results:<br>
<br>
1..<br>
<br>
rectObj imgrect =new rectObj(10,10,100,100,0);<br>
                map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null);<br>
<br>
SEVERE: java.lang.UnknownError: mapscript::mapObj::zoomRectangle():<br>
General error message. image rectangle maxy &gt;= miny<br>
javax.faces.el.EvaluationException: java.lang.UnknownError:<br>
mapscript::mapObj::zoomRectangle():<br>
General error message. image rectangle maxy &gt;= miny<br>
<br>
~~~~~~~~~~~~~~~~<br>
2..<br>
<br>
rectObj imgrect =new rectObj(10,100,100,10,0);<br>
map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null);<br>
<br>
SEVERE: java.lang.UnknownError: rectObj():<br>
Invalid rectangle. { &#39;minx&#39;: 10.000000 , &#39;miny&#39;: 100.000000 , &#39;maxx&#39;:<br>
100.000000 , &#39;maxy&#39;: 10.000000 }<br>
javax.faces.el.EvaluationException: java.lang.UnknownError: rectObj():<br>
Invalid rectangle. { &#39;minx&#39;: 10.000000 , &#39;miny&#39;: 100.000000 , &#39;maxx&#39;:<br>
100.000000 , &#39;maxy&#39;: 10.000000 }<br>
~~~~~~~~~~~~~~~~<br>
<br>
I will appreciate, if you give your sense.<br>
<br>
regards<br>
--<br>
Open WebMail Project (<a href="http://openwebmail.org" target="_blank">http://openwebmail.org</a>)<br>
<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>