[Mapserver-users] Using mapserv.js with decimal degrees

Ethan Alpert ealpert at digitalglobe.com
Mon May 3 15:31:54 EDT 2004

Did you change the extents of the calls to dBox and Mapserv?

>From the demo there's a file called itasca_add_dhtml.html

In that file there are calls to create dBox and Mapserv that require
proper extents. In addition theres a mounsemove_handler which you'll
need to change to display the proper coordinates.

I got mine to work but I'm using a very simple map. I'd imaging that
crossing the date line or a any map that contains a pole might cause
problems with the calculations.


-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Matthew
Sent: Monday, May 03, 2004 1:01 PM
To: mapserver-users at lists.gis.umn.edu
Cc: Gregor Mosheh
Subject: [Mapserver-users] Using mapserv.js with decimal degrees

Hey all,
  I have been using the mapserv.js and dbox.js
libraries for developing mapserver interfaces. It
works great for projected data but now we're trying to
get the navigation tools (panning, zooming, etc) to
work with decimal degrees. 

In the mapserv.js, there is a global variable called InchesPerMapUnit
that you need to set correctly if not using meters. Since lat/long is
measured in angular units (degrees), how would you set this variable? 

Are there any other tricks to get the coordinate
calculations working with lat/long? Anyone had any
luck with this? Is it even possible?

Thanks for any input!

Matt Perry
Natural Resources Planning 
Humboldt State University
mtperry78 at sbcglobal.net

Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu

More information about the mapserver-users mailing list