Getting map extents using mode=map
Ed McNierney
ed at TOPOZONE.COM
Wed Nov 17 08:56:03 PST 2004
Ethan -
Well, you do if you want MapServer to generate more than one image <g>! And in any event, if you specified them in the mapfile and DON'T change them in the you shouldn't need MapServer to tell you what they are; they're constant.
- Ed
-----Original Message-----
From: Ethan Alpert [mailto:ealpert at digitalglobe.com]
Sent: Wednesday, November 17, 2004 11:50 AM
To: Ed McNierney;MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] Getting map extents using mode=map
Extents are defined in the mapfile so you're not required to provide extents in the URL.
-e
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney
Sent: Wednesday, November 17, 2004 9: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