Java Mapscript zoomRectangle
Mario H. Basa
mhbasa at YAHOO.COM
Sun Apr 3 07:21:19 PDT 2005
Hello there,
I am having problems getting mapObj.zoomRectangle to
work, always getting a
java.lang.UnknownError: Georeferenced coordinates miny
<= maxy
error message even though my extents are correct. My
code is here:
rectObj myExtent = new
rectObj(-1d,-1d,-1d,-1d,mapscript.MS_FALSE);
rectObj myRect = new
rectObj(-1d,-1d,-1d,-1d,mapscript.MS_FALSE);
myExtent.setMinx(53705.02867345365);
myExtent.setMiny(-113841.05840296435);
myExtent.setMaxx(54498.23253009368);
myExtent.setMaxy(-114298.67601256436);
myRect.setMinx(138d);
myRect.setMiny(88d);
myRect.setMaxx(433d);
myRect.setMaxy(312d);
this.mapObj.zoomRectangle(myRect,650,375,myExtent,myExtent);
I tried declaring myRect with a MS_TRUE parameter, but
the error still persists. Is it the way I am declaring
my rectObj which is at fault?
Thanks.
mario
yokohama,japan
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
More information about the MapServer-users
mailing list