Fwd: [UMN_MAPSERVER-DEV] zoomRectangle error "Georeferenced coordinates miny <= maxy"

Umberto Nicoletti umberto.nicoletti at GMAIL.COM
Wed May 31 02:45:36 EDT 2006


Added mapserver-dev to my reply...

---------- Forwarded message ----------
From: Umberto Nicoletti <umberto.nicoletti at gmail.com>
Date: May 31, 2006 8:44 AM
Subject: Re: [UMN_MAPSERVER-DEV] zoomRectangle error "Georeferenced
coordinates miny <= maxy"
To: "Matthew Lock (sent by Nabble.com)" <lists at nabble.com>


Matthew,
sorry it took this long to reply. Yesterday I also stepped into the
same issue. It turned out that mapscript  accidentally swapped maxy
and miny when checking for rectangle coordinates correctness and this
entirely broke zoomRectangle.
I have fixed this in cvs, so you might want to build mapscript from
cvs HEAD again and report if it works.

Best regards,
Umberto

On 1/16/06, Matthew Lock (sent by Nabble.com) <lists at nabble.com> wrote:
>  Hello, I am getting an error when I try to implement a "marquee zoom tool"
> in my mapscript application (c#). Here is the code below:
>
>  rectObj bounds = new rectObj( 200, 200, 300, 300, mapscript.MS_FALSE );
> rectObj current_extent = new rectObj( map.extent.minx, map.extent.miny,
> map.extent.maxx, map.extent.maxy, mapscript.MS_FALSE );
> rectObj max_extent = new rectObj( -180, 0, -60, 90, mapscript.MS_FALSE );
> map.zoomRectangle( bounds, map.width, map.height, current_extent, max_extent
> );
>
>
>  When my program gets to map.zoomRectangle I get the following error:
>  "Server was unable to process request. --> Georeferenced coordinates miny
> <= maxy"
>  Can someone tell me what's wrong. Or some other way I can use to sets of
> pixels to zoom in a rectangle on my map? Regards, Matthew Lock
> ________________________________
>  View this message in context: zoomRectangle error "Georeferenced
> coordinates miny <= maxy"
>  Sent from the Mapserver - Dev forum at Nabble.com.



More information about the mapserver-dev mailing list