Commit 6acb6181 authored by Michael Adair's avatar Michael Adair
Browse files

closes #26: added missing longitude offset

parent 88a3dafb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ Proj4js.Proj.stere = {
// Stereographic forward equations--mapping lat,long to x,y
  forward: function(p) {
    var lon = p.x;
    lon = Proj4js.common.adjust_lon(lon - this.long0);
    var lat = p.y;
    var x, y
    
@@ -233,7 +234,7 @@ Proj4js.Proj.stere = {
    		if (Math.abs(phi_l - lat) < this.CONV) {
    			if (this.mode == this.S_POLE) lat = -lat;
    			lon = (x == 0. && y == 0.) ? 0. : Math.atan2(x, y);
          p.x = lon;
          p.x = Proj4js.common.adjust_lon(lon + this.long0);
          p.y = lat
    			return p;
    		}