zoomRectangle problem...
Oliver Wesp
wesp at GDV.COM
Wed Aug 31 05:42:03 PDT 2005
Hello Paul,
I struggled with the exact same issue. Seems to be a problem with the
different orientation of coordinate systems wether it's world
coordinates or image coordinates.
Try changing miny and maxy in your rec object. Something like
double minY = rec.getMiny();
double maxY = rec.getMaxy();
rec.setMaxy(minY);
rec.setMiny(maxY);
That did the trick for me.
Oliver
Paul james schrieb:
>
> No one can help-me?
>
> Ps.: The "extent" object is the map´s extent ...
>
> ---------- Forwarded message ----------
> From: *Paul james* <pauljame at gmail.com <mailto:pauljame at gmail.com>>
> Date: Aug 30, 2005 11:22 AM
> Subject: zoomRectangle problem...
> To: MAPSERVER-USERS at lists.umn.edu <mailto:MAPSERVER-USERS at lists.umn.edu>
>
>
> Hi...
> My zoom box:
> rectObj rec = new rectObj(127,156,362,351,0);
> My map extent:
> rectObj extent = new rectObj(-79.67662,-34.2426, -24.5421, 6.87629, 0);
>
> and I called the zoomrect function:
>
> map.zoomRectangle(rec,map.width,map.height,extent,null);
>
> But I got the error:
> /Georeferenced coordinates miny <= maxy/
>
> Any ideas?
>
> Thank you
--
Dipl.-Geogr. Oliver Wesp
Gesellschaft fuer geografische Datenverarbeitung
Binger Strasse 49-51
D-55218 Ingelheim
fon: +49 6132 714818
fax: +49 6132 714828
http: www.gdv.com
More information about the MapServer-users
mailing list