Loading lib/projCode/eqdc.js +1 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ Proj4js.Proj.eqdc = { var theta = 0.0; if (rh1 != 0.0) theta = Math.atan2(con *p.x, con *p.y); var ml = this.g - rh1 /this.a; var lat = this.phi3z(this.ml,this.e0,this.e1,this.e2,this.e3); var lat = this.phi3z(ml,this.e0,this.e1,this.e2,this.e3); var lon = Proj4js.common.adjust_lon(this.long0 + theta / this.ns); p.x=lon; Loading lib/projCode/ortho.js +1 −4 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ Proj4js.Proj.ortho = { lat = this.lat0; } lat = Proj4js.common.asinz(cosz * this.sin_p14 + (p.y * sinz * this.cos_p14)/rh); con = Math.abs(lat0) - Proj4js.common.HALF_PI; con = Math.abs(this.lat0) - Proj4js.common.HALF_PI; if (Math.abs(con) <= Proj4js.common.EPSLN) { if (this.lat0 >= 0) { lon = Proj4js.common.adjust_lon(this.long0 + Math.atan2(p.x, -p.y)); Loading @@ -101,9 +101,6 @@ Proj4js.Proj.ortho = { } } con = cosz - this.sin_p14 * Math.sin(lat); if ((Math.abs(con) >= Proj4js.common.EPSLN) || (Math.abs(x) >= Proj4js.common.EPSLN)) { lon = Proj4js.common.adjust_lon(this.long0 + Math.atan2((p.x * sinz * this.cos_p14), (con * rh))); } p.x=lon; p.y=lat; return p; Loading lib/projCode/vandg.js +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ Proj4js.Proj.vandg = { if (p.y >= 0) { lat = (-m1 *Math.cos(th1 + Proj4js.common.PI / 3.0) - c2 / 3.0 / c3) * Proj4js.common.PI; } else { lat = -(-m1 * Math.cos(th1 + PI / 3.0) - c2 / 3.0 / c3) * Proj4js.common.PI; lat = -(-m1 * Math.cos(th1 + Proj4js.common.PI / 3.0) - c2 / 3.0 / c3) * Proj4js.common.PI; } if (Math.abs(xx) < Proj4js.common.EPSLN) { Loading Loading
lib/projCode/eqdc.js +1 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ Proj4js.Proj.eqdc = { var theta = 0.0; if (rh1 != 0.0) theta = Math.atan2(con *p.x, con *p.y); var ml = this.g - rh1 /this.a; var lat = this.phi3z(this.ml,this.e0,this.e1,this.e2,this.e3); var lat = this.phi3z(ml,this.e0,this.e1,this.e2,this.e3); var lon = Proj4js.common.adjust_lon(this.long0 + theta / this.ns); p.x=lon; Loading
lib/projCode/ortho.js +1 −4 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ Proj4js.Proj.ortho = { lat = this.lat0; } lat = Proj4js.common.asinz(cosz * this.sin_p14 + (p.y * sinz * this.cos_p14)/rh); con = Math.abs(lat0) - Proj4js.common.HALF_PI; con = Math.abs(this.lat0) - Proj4js.common.HALF_PI; if (Math.abs(con) <= Proj4js.common.EPSLN) { if (this.lat0 >= 0) { lon = Proj4js.common.adjust_lon(this.long0 + Math.atan2(p.x, -p.y)); Loading @@ -101,9 +101,6 @@ Proj4js.Proj.ortho = { } } con = cosz - this.sin_p14 * Math.sin(lat); if ((Math.abs(con) >= Proj4js.common.EPSLN) || (Math.abs(x) >= Proj4js.common.EPSLN)) { lon = Proj4js.common.adjust_lon(this.long0 + Math.atan2((p.x * sinz * this.cos_p14), (con * rh))); } p.x=lon; p.y=lat; return p; Loading
lib/projCode/vandg.js +1 −1 Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ Proj4js.Proj.vandg = { if (p.y >= 0) { lat = (-m1 *Math.cos(th1 + Proj4js.common.PI / 3.0) - c2 / 3.0 / c3) * Proj4js.common.PI; } else { lat = -(-m1 * Math.cos(th1 + PI / 3.0) - c2 / 3.0 / c3) * Proj4js.common.PI; lat = -(-m1 * Math.cos(th1 + Proj4js.common.PI / 3.0) - c2 / 3.0 / c3) * Proj4js.common.PI; } if (Math.abs(xx) < Proj4js.common.EPSLN) { Loading