getting map extent when using maxy and scale on cgi interface {Scanned} {Scanned}
Thomas Chesky
thomaschesky at YAHOO.COM
Sun Dec 5 08:37:04 PST 2004
Zoltan,
Thanks for the answer.
imgext is an input parameter as far as I know. If I know it, then I use imgext to request the map with that particular extent. But in my case I only know the center point (geocoded address), the scale and the image width/height. These are my inputs. Mapserver calculates the extent when drawing the map. How can I ask Mapserver to return this extent (coordinates of bottom-right and top-left of the map) besides returning the rendered image?
So my input is: center lat/lon; scale; width/height pixels of map
Current output: 1) image
Desired output: 1) image and 2) bottom-right/top-left coordinates
Thomas
Siki Zoltan <siki at agt.bme.hu> wrote:
Hi,
Check imgext cgi variable. It holds the minx miny maxx maxy of the actual
map image.
Bye
Zoltan
On Sat, 4 Dec 2004, Thomas Chesky wrote:
> How can I request the map extent (bounding rectangle's coordinates) of the mapreturned by MapServer via the cgi interface when using mapxy and scale params .
>
> I have a cgi get string like this:
> &mapxy=-122.244+37.47502&scale=1&mapsize=600+400
>
> Mapserver returns the image (map) correctly. I would like to know what are the bottom,left and top,right coordinates of the returned map.
>
> Can I do it via the cgi interface (any ascii response is good) or WFS or I have to use PHPmapscript?
>
> Thanks
>
> Thomas
>
>
> ---------------------------------
> Do you Yahoo!?
> The all-new My Yahoo! What will yours do?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041205/17682c97/attachment.htm>
More information about the MapServer-users
mailing list