[Mapserver-users] Change projection (mouse coordinates) on-the-fly

Steve McCrone ms57 at streamyx.com
Fri Mar 19 03:45:17 EST 2004


I'm re-posting this question with a bit more detailed explanation.

I am using strictly CGI mapserver and the jBox applet - no mapscript. My
shape files are in UTM meters. I have set my extents, as seen below.

I have my jBox javascript function display the UTM m mouse coordiantes. Now,
I am asing if there is a way to configure the *.map file so the user can
switch between displaying UTM m(specific speroid) and Geographic Coordinates
(i.e. lat/lon) with another spheroid. In other words, similar functionality
to most GIS software, such as Arcview, where the user simply changes the
projection/spheroide and the mouse coordinates reflect this change.

Thanks,

Steve

My map file includes -

NAME DEMO
STATUS ON
SIZE 700 550
EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
UNITS METERS

#Not sure how to configure map file - do i need to duplicate all layers: one
for UTM and the other for lat/lon?
PROJECTION
     "proj=latlong"
     "ellps=GRS80"
     " zone=15"
     "north"
 "no_defs"
END






More information about the mapserver-users mailing list