[mapserver-users] mapscript and image extent

Doyon, Jean-Francois Jean-Francois.Doyon at ccrs.nrcan.gc.ca
Fri Aug 16 07:05:31 PDT 2002


With the CGI version the extent of the map being returned can be accessed
via "[mapext]" ...

In Perl, something like "$map->{extent}->{minx}" (or miny,maxx,maxy) should
give it to you ... Just make sure you call this after any operation has been
performed obviously.  This would return the extent of the map for the
current state of the map object.

J.F.

-----Original Message-----
From: Michael Schulz [mailto:mschulz at webgis.de]
Sent: Friday, August 16, 2002 5:48 AM
To: MapServer Userlist
Subject: [mapserver-users] mapscript and image extent


Hi,

is it possible to get mapscript access to the calculated image extent
(in map coordinates) when/after drawing the map image? Because this is
not the same as the actual map extent set in the mapfile, is it?

Thanks, Michael

--
-----------------------------------------------------------
Michael Schulz                                in medias res
Dipl.-Geologe                              Gesellschaft für
                                Informationstechnologie mbH
                             Sautierstr. 38, 79104 Freiburg
                                     0761 55695-95 (Fax 96)
mschulz at webgis.de                             www.webgis.de




More information about the MapServer-users mailing list