Getting map extents using mode=map

Ed McNierney ed at TOPOZONE.COM
Wed Nov 17 08:48:43 PST 2004


Randy -

But the banding box would be drawn by client JavaScript code which needs to calculate the new extent to be requested, no?  I don't see why that code couldn't simply calculate the correct extents with the same aspect ratio as the output image rectangle.

     - Ed


-----Original Message-----
From: Randy Page [mailto:randy.page at terraverge.com]
Sent: Wednesday, November 17, 2004 11:45 AM
To: 'Ed McNierney';MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] Getting map extents using mode=map

Ed,

I realize the extents must be specified in the request.   My concern is when
a shape is requested that differs from the map size such as when a long
skinny banding box is drawn.

Thanks,

Randy

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney
Sent: Wednesday, November 17, 2004 11:37 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Getting map extents using mode=map

Randy -

If you use mode=map you must SPECIFY the extents of the map when you make the request.  You can't "retrieve" them since mode=map only returns an image, but you can try to remember the extents you specified when you made the request.  Unless you requested an area of a different shape than your image, what you get is what you asked for.

        - Ed

Ed McNierney
TopoZone.com

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy Page
Sent: Wednesday, November 17, 2004 11:09 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Getting map extents using mode=map

Hi All,

I am using MapServer CGI, and have a questing regarding mode=map.   In the
past I have used mode=browse, which allowed me to return information such
as the map extents and scale via the template.   However, I now need to
switch to mode=map, and need to know if there is a way to retrieve the extents and scale of the image produced.

Any suggestions?

Thanks,

Randy Page



More information about the MapServer-users mailing list