[Mapserver-users] Reference map to show bounding coordinates extent not map extent

John.Hockaday at ga.gov.au John.Hockaday at ga.gov.au
Wed Feb 4 21:10:25 PST 2004


Hi all,

I am using cgi mapserv to identify a bounding box which is used to define a
region in another application.  I use JavaScript to allow the user to drag a
bounding box on the [img] and the resulting [rawminx], [rawminy] etc.
coordinates are sent to mapserv which returns an image zoomed into the
selected region.  The image size is fixed so there is some area either above
and below or to the left and right of the selected region which is outside of
the area defined by the user.

Mapserv also returns a reference map and the defined area on that map shows
the extent of the mapserv image but not the extent of the region defined by
the user.

Are there some parameters that can be sent to a cgi mapserv so that the
reference map indicates the [rawminx], [rawminy], [rawmaxx] and [rawmaxy]
converted to lats and long instead of the [imgext]?  Or is there some other
way of creating a reference map with the [imgbox] coordinates and not the
[imgext] coordinates?

Thanks.


John




More information about the MapServer-users mailing list