Inverted Latitude

Shanton, James A James.Shanton2 at NSCORP.COM
Wed Dec 22 06:14:42 PST 2004


Can someone tell me why my Latitude coordinates would be inverted ?
When I first display my map of the US, my latitude reading gets lower as I
move my cursor north.

Here is my formula I'm using to determine the latitude.
My Longitude reading is Correct.   I've just noticed this problem while
working on manually setting my extents.

Thanks !
Jim Shanton

-----------------------  Latitude Function -------------

function DetY(y)
{
  var mapheight = ([maxy] - [miny]);
  var mappixel = mapheight / 500;
  GIS_Y = [miny] + (y * mappixel);
  return GIS_Y;
}



-----------------------   Top of MAP File ----------------

MAP
NAME iTrax
IMAGETYPE jpeg
EXTENT -126 22.77 -66.78 52.08
SIZE 600 500
SHAPEPATH "D:/MAPS/iTRAXGISDF"
SYMBOLSET "D:/MAPS/ITRAXGISSYM/symbols35.sym"
FONTSET   "D:/MAPS/ITRAXGISFNT/font.set"
UNITS dd

WEB
  MINSCALE 4000
  MAXSCALE 50000000
  TEMPLATE  'D:/MAPS/ITRAXGISMF/itrax.html'
  IMAGEPATH 'D:/MAPS/itraxtmp/'
  IMAGEURL  'http://itraxdev.nscorp.com/tmp/'
END

PROJECTION
  "proj=longlat"
  "ellps=WGS84"
END



More information about the MapServer-users mailing list